Compare commits

...

4 Commits

5 changed files with 24 additions and 8 deletions

View File

@ -142,5 +142,11 @@ return {
"<C-f>",
"<cmd>Telescope current_buffer_fuzzy_find<CR>",
{ noremap = true, desc = "Find" },
},
{
{ "n" },
"<S-f>",
"<cmd>lua vim.lsp.buf.format()<CR>",
{ noremap = true, desc = "Format active buffer" }
}
}

View File

@ -2,6 +2,7 @@ return {
{
"VidocqH/lsp-lens.nvim",
config = function()
vim.api.nvim_set_hl(0, 'LspLens', { link = 'NonText', default = true })
require("lsp-lens").setup({
enable = true,
sections = {
@ -11,6 +12,7 @@ return {
git_authors = true,
},
})
vim.api.nvim_set_hl(0, 'LspLens', { link = 'NonText', default = true })
end,
},
}

View File

@ -38,8 +38,6 @@ return {
function(server_name) -- default handler (optional)
require("lspconfig")[server_name].setup({
on_attach = function(client, bufnr)
-- setup lsp-format
require("lsp-format").on_attach(client, bufnr)
end
})
end,
@ -58,9 +56,6 @@ return {
require("lspconfig").gdscript.setup({})
end,
},
{
'lukas-reineke/lsp-format.nvim',
},
{
"jinzhongjia/LspUI.nvim",
branch = "main",

View File

@ -63,6 +63,19 @@ return {
vim.cmd("Mason")
end, 100)
end
},
{
function()
return ' 󰛖 '
end,
padding = 0,
on_click = function()
vim.defer_fn(
function()
vim.lsp.buf.format()
end, 100
)
end
}
},
lualine_c = {

View File

@ -3,7 +3,7 @@ return {
"nvim-tree/nvim-tree.lua",
opts = {
hijack_cursor = true,
sync_root_with_cwd = true,
sync_root_with_cwd = false,
diagnostics = {
enable = true,
show_on_dirs = true,
@ -11,7 +11,7 @@ return {
},
update_focused_file = {
enable = true,
update_root = true,
update_root = false,
ignore_list = { "help" },
},
modified = {
@ -33,7 +33,7 @@ return {
},
view = {
signcolumn = "no",
width = 45,
width = 30,
},
},
},