Compare commits

...

5 commits

5 changed files with 12 additions and 16 deletions

View file

@ -1,19 +1,8 @@
return {
settings = {
nixd = {
nixpkgs = {
expr = "import (builtins.getFlake(toString ./.)).inputs.nixpkgs { }",
},
formatting = {
command = {"alejandra"},
},
options = {
nixos = {
expr = "let flake = builtins.getFlake(toString ./.); in flake.nixosConfigurations.skadi.options",
},
home_manager = {
expr = "let flake = builtins.getFlake(toString ./.); in flake.homeConfigurations.skadi.options",
},
command = { "alejandra" },
},
},
},

View file

@ -31,3 +31,11 @@ vim.api.nvim_create_autocmd("BufWritePre", {
end,
})
-- disable autocommenting lines
vim.api.nvim_create_autocmd("FileType", {
group = augroup,
pattern = "*",
callback = function()
vim.opt_local.formatoptions:remove({ "r", "o" })
end,
})

View file

@ -20,7 +20,7 @@ vim.opt.laststatus = 3
-- setup tabs and indenting
vim.opt.expandtab = true
vim.opt.smartindent = true
vim.opt.smartindent = false
vim.opt.autoindent = true
vim.opt.tabstop = 2
vim.opt.shiftwidth = 2
@ -76,7 +76,6 @@ vim.opt.ttimeoutlen = 0
vim.opt.hidden = true
vim.opt.errorbells = false
vim.opt.backspace = "indent,eol,start"
vim.opt.autochdir = false
vim.opt.iskeyword:append("-") -- treat dash as part of the word
vim.opt.path:append("**") -- include subdirectories in search
vim.opt.modifiable = true

View file

@ -1,7 +1,6 @@
vim.pack.add({
{src = "https://github.com/stevearc/conform.nvim"},
{ src = "https://github.com/stevearc/conform.nvim" },
})
vim.api.nvim_create_user_command("Format", function(args)
local range = nil
if args.count ~= -1 then

View file

@ -27,6 +27,7 @@ vim.lsp.enable({
"ruff",
"basedpyright",
"yamlls",
"bashls",
})
-- diagnostic settings