diff --git a/lua/settings/init.lua b/lua/settings/init.lua index e480c11..7c60acb 100644 --- a/lua/settings/init.lua +++ b/lua/settings/init.lua @@ -28,6 +28,7 @@ function settings.initMisc() vim.opt.softtabstop = 4 vim.opt.expandtab = false vim.opt.autoindent = true + vim.opt.smartindent = true vim.opt.completeopt = { "menu", "menuone", "noselect" } end diff --git a/lua/settings/lsp.lua b/lua/settings/lsp.lua index 9156808..38d778c 100644 --- a/lua/settings/lsp.lua +++ b/lua/settings/lsp.lua @@ -2,6 +2,11 @@ local lsp = {} +local opts = { noremap = true, silent = true } +vim.keymap.set('n', 'e', vim.diagnostic.open_float, opts) +vim.keymap.set('n', ',d', vim.diagnostic.goto_prev, opts) +vim.keymap.set('n', '.d', vim.diagnostic.goto_next, opts) + local lsp_attach = function(client, buf) vim.api.nvim_buf_set_option(buf, "formatexpr", "v:lua.vim.lsp.formatexpr()") vim.api.nvim_buf_set_option(buf, "omnifunc", "v:lua.vim.lsp.omnifunc") @@ -72,7 +77,12 @@ function lsp.init() capabilities = capabilities, on_attach = lsp_attach }) - lspconfig.svelte.setup({ + lspconfig.tailwindcss.setup({ + capabilities = capabilities, + on_attach = lsp_attach + }) + capabilities.textDocument.completion.completionItem.snippetSupport = true + lspconfig.emmet_ls.setup({ capabilities = capabilities, on_attach = lsp_attach }) diff --git a/lua/settings/theme.lua b/lua/settings/theme.lua index 452db5b..fed915e 100644 --- a/lua/settings/theme.lua +++ b/lua/settings/theme.lua @@ -34,7 +34,8 @@ function theme.initColorscheme() additional_vim_regex_highlighting = false, }, indent = { - enable = true + enable = true, + disable = { "html" } } } end