summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--README.md2
-rw-r--r--init.lua1
-rw-r--r--lua/lsp/js-ts-ls.lua1
-rw-r--r--lua/nv-closetag/init.lua3
4 files changed, 5 insertions, 2 deletions
diff --git a/README.md b/README.md
index 5e095787..e41c321a 100644
--- a/README.md
+++ b/README.md
@@ -26,12 +26,12 @@ sudo rm -r neovim
**HIGH PRIORITY**
- snippet support
-- auto close tags
- configure git blame
- react commenting
- better autoimport
- add lots of lsp
- add vscode support
+- toggle virtual text diagnostics
**LOW PRIORITY**
- move language servers not installed with npm to neovim local share location
diff --git a/init.lua b/init.lua
index efa71fca..b142181a 100644
--- a/init.lua
+++ b/init.lua
@@ -22,6 +22,7 @@ require('nv-vim-rooter')
require('nv-lspkind')
require('nv-hop')
require('nv-compe')
+require('nv-closetag')
-- Which Key (Hope to replace with Lua plugin someday)
vim.cmd('source ~/.config/nvim/lua/nv-whichkey/init.vim')
diff --git a/lua/lsp/js-ts-ls.lua b/lua/lsp/js-ts-ls.lua
index a1276d6d..e6e856d1 100644
--- a/lua/lsp/js-ts-ls.lua
+++ b/lua/lsp/js-ts-ls.lua
@@ -5,5 +5,4 @@ local capabilities = vim.lsp.protocol.make_client_capabilities()
capabilities.textDocument.completion.completionItem.snippetSupport = true;
require'lspconfig'.tsserver.setup{
capabilities = capabilities,
- on_attach = on_attach
}
diff --git a/lua/nv-closetag/init.lua b/lua/nv-closetag/init.lua
new file mode 100644
index 00000000..8c116410
--- /dev/null
+++ b/lua/nv-closetag/init.lua
@@ -0,0 +1,3 @@
+vim.g.closetag_filenames = '*.html,*.xhtml,*.phtml'
+vim.g.closetag_xhtml_filenames = '*.xhtml,*.jsx,*.js'
+vim.g.closetag_filetypes = 'html,xhtml,phtml,javascript,javascriptreact'