summaryrefslogtreecommitdiff
path: root/lua/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'lua/plugins')
-rw-r--r--lua/plugins/colorizer.lua2
-rw-r--r--lua/plugins/lspconfig.lua7
-rw-r--r--lua/plugins/lualine.lua2
-rw-r--r--lua/plugins/neo-tree.lua1
-rw-r--r--lua/plugins/standalone.lua (renamed from lua/plugins/init.lua)6
-rw-r--r--lua/plugins/treesitter.lua5
-rw-r--r--lua/plugins/undotree.lua2
7 files changed, 15 insertions, 10 deletions
diff --git a/lua/plugins/colorizer.lua b/lua/plugins/colorizer.lua
index a4d0425..2a6b40f 100644
--- a/lua/plugins/colorizer.lua
+++ b/lua/plugins/colorizer.lua
@@ -30,6 +30,6 @@ return {
config = function(_, opts)
require('colorizer').setup(opts)
- vim.keymap.set('n', '<leader>ct', '<CMD>ColorizerToggle<CR>', { desc = '[C]olorizer [T]oggle' })
+ vim.keymap.set('n', '<leader>ct', '<CMD>ColorizerToggle<CR>', { desc = '[c]olorizer [t]oggle' })
end
}
diff --git a/lua/plugins/lspconfig.lua b/lua/plugins/lspconfig.lua
index 8023bdc..27ad7b7 100644
--- a/lua/plugins/lspconfig.lua
+++ b/lua/plugins/lspconfig.lua
@@ -122,6 +122,11 @@ return {
})
-- At the end, add GDscript support, which is only supported by lspconfig itself
- lspconfig.gdscript.setup({ capabilities = capabilities })
+ lspconfig.gdscript.setup({
+ capabilities = capabilities,
+ on_attach = on_attach,
+ -- Need a better setup, this is for wsl -> win setup, but the ip will change dynamically
+ -- cmd = { 'nc', '172.30.112.1', '6005' },
+ })
end,
}
diff --git a/lua/plugins/lualine.lua b/lua/plugins/lualine.lua
index 3354031..0821711 100644
--- a/lua/plugins/lualine.lua
+++ b/lua/plugins/lualine.lua
@@ -1,7 +1,7 @@
return {
'nvim-lualine/lualine.nvim',
dependencies = {
- { 'nvim-tree/nvim-web-devicons', opt = {} },
+ 'nvim-tree/nvim-web-devicons',
'rmagatti/auto-session',
},
opts = {
diff --git a/lua/plugins/neo-tree.lua b/lua/plugins/neo-tree.lua
index c95eefb..cecd66f 100644
--- a/lua/plugins/neo-tree.lua
+++ b/lua/plugins/neo-tree.lua
@@ -292,6 +292,7 @@ return {
highlight_separator_active = "NeoTreeTabSeparatorActive",
},
},
+ -- lazy load on <leader>nt
keys = {
{ '<leader>nt', '<CMD>Neotree toggle<CR>', desc = 'Toggle [N]eo[t]ree' },
},
diff --git a/lua/plugins/init.lua b/lua/plugins/standalone.lua
index b278ce2..bfd9e18 100644
--- a/lua/plugins/init.lua
+++ b/lua/plugins/standalone.lua
@@ -1,9 +1,9 @@
return {
-- Detect tabstop and shiftwidth automatically,
-- uses .editorconfig https://editorconfig.org/
- 'tpope/vim-sleuth',
+ { 'tpope/vim-sleuth', opts = {} },
-- "gc" to comment visual regions/lines
- { 'numToStr/Comment.nvim', opts = {} },
+ { 'numToStr/Comment.nvim', opts = {} },
-- required for nvim-qt on windows
- { 'equalsraf/neovim-gui-shim' },
+ { 'equalsraf/neovim-gui-shim', opts = {} },
}
diff --git a/lua/plugins/treesitter.lua b/lua/plugins/treesitter.lua
index a942921..5f4cb18 100644
--- a/lua/plugins/treesitter.lua
+++ b/lua/plugins/treesitter.lua
@@ -82,14 +82,13 @@ return {
['[]'] = '@class.outer',
},
},
- -- TODO: probably change to <leader>sa (swap argument)
swap = {
enable = true,
swap_next = {
- ['<leader>a'] = { query = '@parameter.inner', desc = 'Swap with next parameter' },
+ ['<leader>a'] = { query = '@parameter.inner', desc = 'Swap with next [a]rgument' },
},
swap_previous = {
- ['<leader>A'] = { query = '@parameter.inner', desc = 'Swap with previous parameter' },
+ ['<leader>A'] = { query = '@parameter.inner', desc = 'Swap with previous [A]rgument' },
},
},
},
diff --git a/lua/plugins/undotree.lua b/lua/plugins/undotree.lua
index 047a5ac..16f57bc 100644
--- a/lua/plugins/undotree.lua
+++ b/lua/plugins/undotree.lua
@@ -2,6 +2,6 @@ return {
'mbbill/undotree',
-- lazy load on <leader>u
keys = {
- { '<leader>u', '<CMD>UndotreeToggle<CR>', desc = 'Toggle [U]ndotree' },
+ { '<leader>u', '<CMD>UndotreeToggle<CR>', desc = '[u]ndotree toggle' },
},
}