blob: 6e4f6106065dd8bd81bbe41a588fb763871c74a7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
{ pkgs, config, lib, ... }:
{
programs.neovim = {
enable = true;
defaultEditor = true;
viAlias = true;
vimAlias = true;
plugins = with pkgs.vimPlugins; [
(nvim-treesitter.withPlugins (p: [
p.lua
p.nix
p.rust
p.python
p.bash
]))
#telescope-nvim
{
plugin = vim-startify; # Add the plugin and its coresponding config
config = "let g:startify_change_to_vcs_root = 0";
}
];
extraLuaConfig = ''
vim.opt.number = true
vim.opt.relativenumber = true
-- Plugins initiated on launch
require("nvim-treesitter.configs").setup({ highlight = { enable = true }, indent = { enable = true }, }) -- Treesitter
'';
};
}
|