From f805c65a309f1795f5d21d988aaa6fa21bc337eb Mon Sep 17 00:00:00 2001 From: Lucas Barbieri Date: Sat, 10 Feb 2024 10:28:00 -0300 Subject: [PATCH] update some things lel --- init.lua | 3 +-- lua/custom/plugins/floating-input.lua | 4 ++++ lua/custom/plugins/{null-ls.lua => none-ls.lua} | 3 ++- lua/jabuxas/remap.lua | 3 +++ 4 files changed, 10 insertions(+), 3 deletions(-) create mode 100644 lua/custom/plugins/floating-input.lua rename lua/custom/plugins/{null-ls.lua => none-ls.lua} (83%) diff --git a/init.lua b/init.lua index 97c2459..d028935 100644 --- a/init.lua +++ b/init.lua @@ -219,7 +219,7 @@ vim.keymap.set('n', 'sd', require('telescope.builtin').diagnostics, { de -- See `:help nvim-treesitter` require('nvim-treesitter.configs').setup { -- Add languages to be installed here that you want installed for treesitter - ensure_installed = { 'c', 'cpp', 'go', 'lua', 'python', 'rust', 'tsx', 'typescript', 'vimdoc', 'vim', 'java' }, + ensure_installed = { 'c', 'go', 'lua', 'python', 'tsx', 'typescript', 'markdown', 'bash', 'html', 'css' }, -- Autoinstall languages that are not installed. Defaults to false (but you can change for yourself!) auto_install = false, @@ -341,7 +341,6 @@ end local servers = { -- clangd = {}, -- hls = {}, - rust_analyzer = {}, gopls = { usePlaceholders = true, analyses = { diff --git a/lua/custom/plugins/floating-input.lua b/lua/custom/plugins/floating-input.lua new file mode 100644 index 0000000..af4fabe --- /dev/null +++ b/lua/custom/plugins/floating-input.lua @@ -0,0 +1,4 @@ +return { + "liangxianzhe/floating-input.nvim", + opts = {} +} diff --git a/lua/custom/plugins/null-ls.lua b/lua/custom/plugins/none-ls.lua similarity index 83% rename from lua/custom/plugins/null-ls.lua rename to lua/custom/plugins/none-ls.lua index 209f20b..9565c62 100644 --- a/lua/custom/plugins/null-ls.lua +++ b/lua/custom/plugins/none-ls.lua @@ -1,5 +1,5 @@ return { - "jose-elias-alvarez/null-ls.nvim", + "nvimtools/none-ls.nvim", config = function() require("null-ls").setup { sources = { @@ -10,6 +10,7 @@ return { require("null-ls").builtins.formatting.gofumpt, require("null-ls").builtins.formatting.goimports_reviser, require("null-ls").builtins.formatting.golines, + require("null-ls").builtins.diagnostics.golangci_lint, } } end diff --git a/lua/jabuxas/remap.lua b/lua/jabuxas/remap.lua index 1326261..0ea58b8 100644 --- a/lua/jabuxas/remap.lua +++ b/lua/jabuxas/remap.lua @@ -57,3 +57,6 @@ keymap.set("n", "gsy", "GoTagAdd yaml ", { desc = "Add yaml str keymap.set("n", "", "bnext", { desc = "Go to next Buffer" }) keymap.set("n", "", "bprev", { desc = "Go to previous Buffer" }) keymap.set("n", "", "bdelete", { desc = "Delete current buffer" }) + +keymap.set("n", "gr", "lua vim.lsp.buf.rename()", + { desc = "Renames all references to the symbol under the cursor" })