mirror of
https://github.com/isabelroses/nvim.git
synced 2025-04-09 13:29:34 +00:00
chore: stuff
This commit is contained in:
parent
942663d31f
commit
30fe74d618
5 changed files with 10 additions and 9 deletions
|
@ -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",
|
||||
},
|
||||
})
|
||||
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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>")
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -253,10 +253,6 @@ rec {
|
|||
config = ./rust.lua;
|
||||
ft = "rust";
|
||||
};
|
||||
rust-vim = {
|
||||
src = srcs.rust-vim;
|
||||
ft = "rust";
|
||||
};
|
||||
|
||||
nvim-lspconfig = {
|
||||
src = srcs.nvim-lspconfig;
|
||||
|
|
Loading…
Add table
Reference in a new issue