nvim/lua/config/autocmds.lua
2024-06-17 15:22:39 +07:00

41 lines
999 B
Lua

-- Autocmds are automatically loaded on the VeryLazy event
-- Default autocmds that are always set: https://github.com/LazyVim/LazyVim/blob/main/lua/lazyvim/config/autocmds.lua
-- Add any additional autocmds here
local opt = vim.opt
opt.shiftwidth = 4
opt.tabstop = 4
-- vim.api.nvim_create_autocmd("BufReadPost", {
-- group = vim.api.nvim_create_augroup("LazyVim_AutoUpdate", {}),
-- once = true,
-- callback = function()
-- require("lazy").update {
-- show = false,
-- wait = false,
-- concurrency = 4,
-- }
-- end,
-- })
-- Golang templ filetype
vim.filetype.add {
extension = {
templ = "templ",
},
}
require("lspconfig").nil_ls.setup {
settings = {
["nil"] = {
nix = {
flake = {
autoArchive = true,
autoEvalInputs = vim.fn.getenv "NIL_LS_NIX_AUTO_EVAL_INPUTS" ~= vim.NIL,
},
},
},
},
}