add nix ftplugin
This commit is contained in:
4
init.lua
4
init.lua
@@ -11,6 +11,8 @@ vim.cmd("set cursorline")
|
||||
vim.cmd("set mouse=a")
|
||||
vim.cmd("set clipboard+=unnamedplus")
|
||||
|
||||
vim.o.exrc = true
|
||||
|
||||
vim.g.python3_host_prog = 'python3.13'
|
||||
|
||||
vim.api.nvim_set_hl(0, "Normal", { bg = "#040404" })
|
||||
@@ -26,7 +28,7 @@ vim.diagnostic.config({
|
||||
|
||||
vim.api.nvim_create_autocmd({ "BufEnter", "CursorHold", "InsertLeave" }, {
|
||||
callback = function()
|
||||
pcall(vim.lsp.codelens.refresh)
|
||||
pcall(function(bufnr) vim.lsp.codelens.enable(true, { bufnr = bufnr }) end)
|
||||
end,
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user