chore: stuff

This commit is contained in:
isabel 2024-06-10 21:23:24 +01:00
parent 942663d31f
commit 30fe74d618
No known key found for this signature in database
GPG key ID: 5A87C993E20D89A1
5 changed files with 10 additions and 9 deletions

View file

@ -13,7 +13,7 @@ require("go").setup({
enable = true,
-- hint style, set to 'eol' for end-of-line hints, 'inlay' for inline hints
-- inlay only avalible for 0.10.x
style = "inlay",
style = "eol",
},
})

View file

@ -7,6 +7,13 @@ end
local augroup = vim.api.nvim_create_augroup("LspFormatting", {})
local sources = {
-- general
null.builtins.formatting.treefmt.with({
condition = function(utils)
return utils.root_has_file("treefmt.toml")
end,
}),
-- nix
null.builtins.formatting.nixfmt,
null.builtins.diagnostics.statix,

View file

@ -35,6 +35,8 @@ map("n", "<leader>fs", "<cmd>SessionManager load_session<cr>") -- Show nvim sess
-- map("n", "<leader>fh", "<cmd>Telescope help_tags<cr>") -- search help tags
map("n", "<leader>fp", "<cmd>Telescope project<cr>") -- skip to project
map("n", "<leader>ft", "<cmd>TodoTelescope<cr>") -- live grep but for TODOs and FIXMEs
map("n", "<leader>fc", "<cmd>Telescope git_commits<cr>") -- git commits
map("n", "<leader>fz", "<cmd>Telescope current_buffer_fuzzy_find<cr>") -- fuzzy find in current buffer
-- save file
map("n", "<C-s>", "<cmd>w<cr>")

View file

@ -168,10 +168,6 @@ src.git = "https://github.com/hiphish/rainbow-delimiters.nvim"
fetch.github = "mrcjkb/rustaceanvim"
src.git = "https://github.com/mrcjkb/rustaceanvim"
[rust-vim]
fetch.github = "rust-lang/rust.vim"
src.git = "https://github.com/rust-lang/rust.vim"
[sayama-nvim]
fetch.github = "comfysage/sayama.nvim"
src.git = "https://github.com/comfysage/sayama.nvim"

View file

@ -253,10 +253,6 @@ rec {
config = ./rust.lua;
ft = "rust";
};
rust-vim = {
src = srcs.rust-vim;
ft = "rust";
};
nvim-lspconfig = {
src = srcs.nvim-lspconfig;