finally added nix lsp and changed indentation for nix and lua :3 also added haskell bc dea <3
This commit is contained in:
parent
88c4057aa5
commit
efb35f75d4
5 changed files with 40 additions and 6 deletions
17
homes/modules/programs/neovim/lua/lsp/indentation.lua
Normal file
17
homes/modules/programs/neovim/lua/lsp/indentation.lua
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
vim.api.nvim_create_autocmd("FileType", {
|
||||
pattern = "lua",
|
||||
callback = function()
|
||||
vim.opt_local.shiftwidth = 2
|
||||
vim.opt_local.tabstop = 2
|
||||
vim.opt_local.expandtab = true
|
||||
end,
|
||||
})
|
||||
|
||||
vim.api.nvim_create_autocmd("FileType", {
|
||||
pattern = "nix",
|
||||
callback = function()
|
||||
vim.opt_local.shiftwidth = 2
|
||||
vim.opt_local.tabstop = 2
|
||||
vim.opt_local.expandtab = true
|
||||
end,
|
||||
})
|
||||
Loading…
Add table
Add a link
Reference in a new issue