feat(lsp): inlay & format

This commit is contained in:
Michel 2024-09-02 15:18:49 +02:00
parent 0acea75748
commit 0f7a77ebe3
2 changed files with 22 additions and 0 deletions

View File

@ -16,6 +16,20 @@ opt.wrapscan = false
vim.g.deprecation_warnings = true
-- Auto-format
--
local set_autoformat = function(pattern, bool_val)
vim.api.nvim_create_autocmd({ "FileType" }, {
pattern = pattern,
callback = function()
vim.b.autoformat = bool_val
end,
})
end
vim.g.autoformat = false
--set_autoformat({ "cpp" }, true)
-- filetype
--
vim.g.markdown_folding = 1

8
lua/plugins/lsp.lua Normal file
View File

@ -0,0 +1,8 @@
return {
{
"neovim/nvim-lspconfig",
opts = {
inlay_hints = { enabled = false },
},
},
}