summaryrefslogtreecommitdiff
path: root/.config/nvim/after
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
parented82e4042b8bfc472a0796dedec1a9369e411cb8 (diff)
nvim: Format all the code with the lua LSP
Diffstat (limited to '.config/nvim/after')
-rw-r--r--.config/nvim/after/plugin/colors.lua2
-rw-r--r--.config/nvim/after/plugin/lsp.lua6
2 files changed, 4 insertions, 4 deletions
diff --git a/.config/nvim/after/plugin/colors.lua b/.config/nvim/after/plugin/colors.lua
index 654b217..e3d2d94 100644
--- a/.config/nvim/after/plugin/colors.lua
+++ b/.config/nvim/after/plugin/colors.lua
@@ -4,7 +4,7 @@ require('rose-pine').setup({
function SetTheme(color)
vim.cmd.colorscheme(color or 'rose-pine')
- vim.api.nvim_set_hl(0, 'Normal', { bg = 'none' })
+ vim.api.nvim_set_hl(0, 'Normal', { bg = 'none' })
vim.api.nvim_set_hl(0, 'NormalFloat', { bg = 'none' })
end
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)