updated nvim config to 0.11 lsp

This commit is contained in:
Luka Jankovic 2025-11-04 00:09:54 +01:00
parent af6b443ef6
commit 04e711f146
5 changed files with 49 additions and 63 deletions

View file

@ -1,2 +1,3 @@
require('config.lazy')
require('config.rest')
require('config.lsp')

6
nvim/lua/config/lsp.lua Normal file
View file

@ -0,0 +1,6 @@
vim.diagnostic.config({
virtual_lines = {
current_line = true,
}
})

View file

@ -27,15 +27,15 @@ vim.o.clipboard = "unnamedplus"
-- ["*"] = paste,
-- },
-- }
-- vim.api.nvim_exec(
-- [[
-- augroup YankHighlight
-- autocmd!
-- autocmd TextYankPost * silent! lua vim.highlight.on_yank()
-- augroup end
-- ]],
-- false
-- )
vim.api.nvim_exec(
[[
augroup YankHighlight
autocmd!
autocmd TextYankPost * silent! lua vim.highlight.on_yank()
augroup end
]],
false
)
-- Restore cursor
local restore_cursor_augroup = vim.api.nvim_create_augroup("restore_cursor_shape_on_exit", { clear = true })