require("lazy").setup("plugins", {
defaults = { lazy = true },
- checker = { enabled = true },
- change_detection = { notify = false, },
+ checker = { enabled = true, notify = false },
+ change_detection = { enabled = true, notify = false, },
performance = {
rtp = {
disabled_plugins = {
vim.keymap.set('n', '<LEADER>h', ":vsplit ")
vim.keymap.set('n', '<LEADER>v', ":split ")
vim.keymap.set('n', '<LEADER>-', '<CMD>setlocal spell spelllang=en_us<CR>')
+vim.keymap.set('n', '<LEADER>w', '<CMD>set textwidth=80<CR>ggVGgq')
-- better line editing
vim.keymap.set('v', 'J', ":m '>+1<CR>gv=gv")
vim.g.visible_diagnostics = true
+vim.g.loaded_perl_provider = 0
+vim.g.loaded_node_provider = 0
+vim.g.loaded_ruby_provider = 0
+vim.g.loaded_python3_provider = 0
+
vim.o.mouse = 'a'
vim.o.mousefocus = true
vim.o.mousemodel = 'extend'
local lsp = require("lspconfig")
lsp.julials.setup({ on_attach = keybinds })
- lsp.lua_ls.setup({ on_attach = keybinds })
lsp.texlab.setup({ on_attach = keybinds })
+ lsp.lua_ls.setup({
+ on_attach = keybinds,
+ settings = {
+ Lua = {
+ diagnostics = { globals = "vim" }
+ }
+ }
+ })
-- diagnostic settings
vim.lsp.diagnostics = {
'JuliaEditorSupport/julia-vim',
event = { "BufReadPost *.jl" },
},
+
}
{ 'christoomey/vim-tmux-navigator', lazy = false },
{ 'lukas-reineke/indent-blankline.nvim', event = 'VeryLazy' },
+ {
+ 'j-hui/fidget.nvim',
+ lazy = false,
+ opts = {
+ progress = {
+ suppress_on_insert = true,
+ ignore_empty_message = true,
+ },
+ notification = {
+ view = {
+ stack_upwards = false,
+ },
+ window = {
+ align = "top",
+ },
+ },
+ },
+ },
+
{
'akinsho/toggleterm.nvim',
keys = { { [[<LEADER>\]], '<CMD>ToggleTerm<CR>' } },
{ '<LEADER>li', '<CMD>Telescope lsp_implementations<CR>' },
{ '<LEADER>ls', '<CMD>Telescope lsp_document_symbols<CR>' },
{ '<LEADER>lS', '<CMD>Telescope lsp_workspace_symbols<CR>' },
+ { '<LEADER>tw', function()
+ local word = vim.fn.expand("<cword>")
+ require('telescope.builtin').grep_string({ search = word })
+ end },
+ { '<LEADER>tW', function()
+ local word = vim.fn.expand("<cWORD>")
+ require('telescope.builtin').grep_string({ search = word })
+ end },
},
config = function()
local actions = require('telescope.actions')
require('telescope').load_extension('fzf')
-
-- live grep in git repo, or fall back to current directory
vim.keymap.set('n', '<LEADER>F',
function()
end
)
-
-- give telescope window if opened with no command
vim.api.nvim_create_autocmd('VimEnter', {
pattern = '*',