Add more neovim stuff

This commit is contained in:
Torjus Håkestad 2024-02-28 02:46:28 +01:00
parent 1970352b59
commit 6a73ba3321
4 changed files with 14 additions and 2 deletions

View File

@ -8,7 +8,8 @@
vim-fugitive vim-fugitive
undotree undotree
telescope-nvim telescope-nvim
lsp-zero-nvim nvim-cmp
nvim-lspconfig
(nvim-treesitter.withPlugins (p: [ (nvim-treesitter.withPlugins (p: [
p.tree-sitter-nix p.tree-sitter-nix
p.tree-sitter-go p.tree-sitter-go
@ -20,14 +21,22 @@
]; ];
extraLuaConfig = '' extraLuaConfig = ''
${builtins.readFile ./options.lua} ${builtins.readFile ./options.lua}
${builtins.readFile ./plugins.lua}
${builtins.readFile ./keybinds.lua}
''; '';
}; };
}; };
home.packages = with pkgs; [ home.packages = with pkgs; [
# nix stuff # nix stuff
nixpkgs-fmt nixpkgs-fmt
nil
statix statix
# LSPs
gopls
nodePackages.pyright
nodePackages.typescript-language-server
nil
yaml-language-server
]; ];
home.sessionVariables.EDITOR = "nvim"; home.sessionVariables.EDITOR = "nvim";
} }

View File

@ -0,0 +1 @@
-- Keybinds

View File

@ -1,3 +1,4 @@
-- Options
vim.g.mapleader = ' ' vim.g.mapleader = ' '
vim.g.maplocalleader = ' ' vim.g.maplocalleader = ' '

View File

@ -0,0 +1 @@
-- Plugins