mirror of
https://github.com/ItsDrike/dotfiles.git
synced 2025-06-30 20:40:42 +00:00
Add suport for nvim's LSP
This commit is contained in:
parent
4eee9b4398
commit
46ca9189af
6 changed files with 180 additions and 11 deletions
5
home/.config/nvim/lua/lsp/autoformat.lua
Normal file
5
home/.config/nvim/lua/lsp/autoformat.lua
Normal file
|
@ -0,0 +1,5 @@
|
|||
local vim = require("vim")
|
||||
local cmd = vim.cmd
|
||||
|
||||
-- Always automatically format on write for given filenames
|
||||
cmd[[autocmd BufWritePre *.js lua vim.lsp.buf.formatting_sync(nil, 100)]]
|
Loading…
Add table
Add a link
Reference in a new issue