chore: move some build processes to nix home-manager
This commit is contained in:
parent
cfbcb0b3a8
commit
1f6326b4ce
4 changed files with 21 additions and 16 deletions
|
|
@ -12,10 +12,18 @@ vim.cmd [[
|
|||
-- Disable netrw first:
|
||||
vim.g.loaded_netrw = 1
|
||||
vim.g.loaded_netrwPlugin = 1
|
||||
|
||||
vim.diagnostic.config({
|
||||
virtual_text = true,
|
||||
})
|
||||
require("oil").setup({
|
||||
default_file_explorer = true,
|
||||
})
|
||||
vim.lsp.config['rust-analyzer'] = {
|
||||
cmd = { 'rust-analyzer' },
|
||||
filetypes = { 'rust' },
|
||||
root_markers = { {'Cargo.toml', 'Cargo.lock'} },
|
||||
}
|
||||
vim.lsp.enable('rust-analyzer')
|
||||
-- Keymaps
|
||||
vim.keymap.set("n", "-", require("oil").open, { desc = "Open Oil" })
|
||||
vim.keymap.set("n", "<leader>-", require("oil").open_float, { desc = "Open Oil float" })
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue