]> git.huck.website - nvim.git/commitdiff
merged: from github
authorHuck Boles <huck.boles@metalplasmatechnology.com>
Tue, 9 Jan 2024 20:07:40 +0000 (12:07 -0800)
committerHuck Boles <huck.boles@metalplasmatechnology.com>
Tue, 9 Jan 2024 20:07:40 +0000 (12:07 -0800)
init.lua
lua/huck/map.lua
lua/huck/settings.lua
lua/plugins/lsp.lua
lua/plugins/misc.lua
lua/plugins/telescope.lua

index ac11d89b8d3d60f0f35e6d4a736b8b37cbdf5acf..2e7cd48154cbb2bd737b64d709a26a872d8938f9 100644 (file)
--- a/init.lua
+++ b/init.lua
@@ -17,8 +17,8 @@ vim.opt.runtimepath:prepend(lazypath)
 
 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 = {
index cf6cbb19aa8a64e03d58fe3cb6090c4579fcf116..b5159ba8a212293f4221cfd3365b435f98fe545e 100644 (file)
@@ -25,6 +25,7 @@ vim.keymap.set('n', '<LEADER>c', ':r!')
 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")
index b72c1a4e378bf62c25041ecbbcf9bfcefddf83d2..2e36778a32cd4eb1c5981c6870a231f35d2ad864 100644 (file)
@@ -8,6 +8,11 @@ vim.g.netrw_liststyle = 4
 
 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'
index e3ed90ce09a16e8938f2662b709ff6f894275c91..50a4873b170216dc3e842f48183f9b363a5aa869 100644 (file)
@@ -69,8 +69,15 @@ return {
                        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 = {
@@ -111,4 +118,5 @@ return {
         'JuliaEditorSupport/julia-vim',
         event = { "BufReadPost *.jl" },
     },
+
 }
index 0a914de14d67181d4ed623056def3afce3c61eab..c05c91a20a528d3c90327f8350b54e9acefc3bb9 100644 (file)
@@ -2,6 +2,25 @@ return {
     { '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>' } },
index b8f29a5e6ad226c74c06d0f5820b5336070ba914..1764063682bd7095345190110e4704c9e7ad3c5d 100644 (file)
@@ -35,6 +35,14 @@ return {
             { '<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')
@@ -72,7 +80,6 @@ return {
 
             require('telescope').load_extension('fzf')
 
-
             -- live grep in git repo, or fall back to current directory
             vim.keymap.set('n', '<LEADER>F',
                 function()
@@ -120,7 +127,6 @@ return {
                 end
             )
 
-
             -- give telescope window if opened with no command
             vim.api.nvim_create_autocmd('VimEnter', {
                 pattern = '*',