diff --git a/lua/config/options.lua b/lua/config/options.lua index 738050b..10e66f5 100644 --- a/lua/config/options.lua +++ b/lua/config/options.lua @@ -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 diff --git a/lua/plugins/lsp.lua b/lua/plugins/lsp.lua new file mode 100644 index 0000000..ab6686b --- /dev/null +++ b/lua/plugins/lsp.lua @@ -0,0 +1,8 @@ +return { + { + "neovim/nvim-lspconfig", + opts = { + inlay_hints = { enabled = false }, + }, + }, +}