summaryrefslogtreecommitdiff
path: root/.config/nvim/after/plugin/lsp.lua
diff options
context:
space:
mode:
authorThomas Voss <mail@thomasvoss.com> 2023-09-12 23:35:19 +0200
committerThomas Voss <mail@thomasvoss.com> 2023-09-12 23:35:19 +0200
commitdcc38607f207af8e2c0cebe36e49018929057f1b (patch)
tree1847bda82ae7e247b371ca933aaf39fd134c315e /.config/nvim/after/plugin/lsp.lua
parented82e4042b8bfc472a0796dedec1a9369e411cb8 (diff)
nvim: Format all the code with the lua LSP
Diffstat (limited to '.config/nvim/after/plugin/lsp.lua')
-rw-r--r--.config/nvim/after/plugin/lsp.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/.config/nvim/after/plugin/lsp.lua b/.config/nvim/after/plugin/lsp.lua
index 27703fa..dcf98f1 100644
--- a/.config/nvim/after/plugin/lsp.lua
+++ b/.config/nvim/after/plugin/lsp.lua
@@ -11,7 +11,7 @@ lsp.ensure_installed({
lsp.nvim_workspace()
local cmp = require('cmp')
-local cmp_select = {behavior = cmp.SelectBehavior.Select}
+local cmp_select = { behavior = cmp.SelectBehavior.Select }
local cmp_mappings = lsp.defaults.cmp_mappings({
['<C-k>'] = cmp.mapping.select_prev_item(cmp_select),
['<C-j>'] = cmp.mapping.select_next_item(cmp_select),
@@ -21,7 +21,7 @@ local cmp_mappings = lsp.defaults.cmp_mappings({
lsp.set_preferences({
suggest_lsp_servers = false,
- sign_icons = { }
+ sign_icons = {}
})
lsp.setup_nvim_cmp({
@@ -29,7 +29,7 @@ lsp.setup_nvim_cmp({
})
lsp.on_attach(function(_, bufnr)
- local opts = {buffer = bufnr, remap = false}
+ local opts = { buffer = bufnr, remap = false }
lib.remap('n', 'gd', vim.lsp.buf.definition, opts)
lib.remap('n', '<leader>la', vim.lsp.buf.code_action, opts)