From 6a73ba3321b24479197c1a7ad7ec93f312161061 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torjus=20H=C3=A5kestad?= Date: Wed, 28 Feb 2024 02:46:28 +0100 Subject: [PATCH] Add more neovim stuff --- home/editor/neovim/default.nix | 13 +++++++++++-- home/editor/neovim/keybinds.lua | 1 + home/editor/neovim/options.lua | 1 + home/editor/neovim/plugins.lua | 1 + 4 files changed, 14 insertions(+), 2 deletions(-) create mode 100644 home/editor/neovim/keybinds.lua create mode 100644 home/editor/neovim/plugins.lua diff --git a/home/editor/neovim/default.nix b/home/editor/neovim/default.nix index 9ec3c16..da2f966 100644 --- a/home/editor/neovim/default.nix +++ b/home/editor/neovim/default.nix @@ -8,7 +8,8 @@ vim-fugitive undotree telescope-nvim - lsp-zero-nvim + nvim-cmp + nvim-lspconfig (nvim-treesitter.withPlugins (p: [ p.tree-sitter-nix p.tree-sitter-go @@ -20,14 +21,22 @@ ]; extraLuaConfig = '' ${builtins.readFile ./options.lua} + ${builtins.readFile ./plugins.lua} + ${builtins.readFile ./keybinds.lua} ''; }; }; home.packages = with pkgs; [ # nix stuff nixpkgs-fmt - nil statix + + # LSPs + gopls + nodePackages.pyright + nodePackages.typescript-language-server + nil + yaml-language-server ]; home.sessionVariables.EDITOR = "nvim"; } diff --git a/home/editor/neovim/keybinds.lua b/home/editor/neovim/keybinds.lua new file mode 100644 index 0000000..131e566 --- /dev/null +++ b/home/editor/neovim/keybinds.lua @@ -0,0 +1 @@ +-- Keybinds diff --git a/home/editor/neovim/options.lua b/home/editor/neovim/options.lua index 87afdab..9141099 100644 --- a/home/editor/neovim/options.lua +++ b/home/editor/neovim/options.lua @@ -1,3 +1,4 @@ +-- Options vim.g.mapleader = ' ' vim.g.maplocalleader = ' ' diff --git a/home/editor/neovim/plugins.lua b/home/editor/neovim/plugins.lua new file mode 100644 index 0000000..771174d --- /dev/null +++ b/home/editor/neovim/plugins.lua @@ -0,0 +1 @@ +-- Plugins