Update nvim config
This commit is contained in:
parent
9543b3b2d8
commit
fdec652110
1 changed files with 40 additions and 23 deletions
|
|
@ -93,6 +93,13 @@
|
||||||
'';
|
'';
|
||||||
|
|
||||||
plugins = with pkgs.vimPlugins; [
|
plugins = with pkgs.vimPlugins; [
|
||||||
|
{
|
||||||
|
plugin = nvim-lspconfig;
|
||||||
|
type = "lua";
|
||||||
|
config = ''
|
||||||
|
vim.lsp.enable("gleam")
|
||||||
|
'';
|
||||||
|
}
|
||||||
{
|
{
|
||||||
plugin = (
|
plugin = (
|
||||||
nvim-treesitter.withPlugins (
|
nvim-treesitter.withPlugins (
|
||||||
|
|
@ -107,43 +114,53 @@
|
||||||
swift
|
swift
|
||||||
typescript
|
typescript
|
||||||
javascript
|
javascript
|
||||||
|
jinja
|
||||||
json
|
json
|
||||||
nix
|
nix
|
||||||
]
|
]
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
type = "lua";
|
||||||
config = ''
|
config = ''
|
||||||
packadd! nvim-treesitter
|
|
||||||
lua <<EOF
|
|
||||||
require("nvim-treesitter.configs").setup({
|
require("nvim-treesitter.configs").setup({
|
||||||
highlight = {
|
highlight = {
|
||||||
enable = true,
|
enable = true,
|
||||||
|
disable = {},
|
||||||
|
},
|
||||||
|
incremental_selection = {
|
||||||
|
enable = true,
|
||||||
|
keymaps = {
|
||||||
|
init_selection = "gnn",
|
||||||
|
node_incremental = "grn",
|
||||||
|
scope_incremental = "grc",
|
||||||
|
node_decremental = "grm",
|
||||||
|
},
|
||||||
|
},
|
||||||
|
textobjects = {
|
||||||
|
select = {
|
||||||
|
enable = true,
|
||||||
|
lookahead = true,
|
||||||
|
keymaps = {
|
||||||
|
["af"] = "@function.outer",
|
||||||
|
["if"] = "@function.inner",
|
||||||
|
["ac"] = "@class.outer",
|
||||||
|
["ic"] = "@class.inner",
|
||||||
|
},
|
||||||
|
},
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
EOF
|
|
||||||
'';
|
'';
|
||||||
}
|
}
|
||||||
{
|
|
||||||
plugin = nvim-lspconfig;
|
|
||||||
config = ''
|
|
||||||
packadd! nvim-lspconfig
|
|
||||||
lua <<EOF
|
|
||||||
local lspconfig = require("lspconfig")
|
|
||||||
lspconfig.gleam.setup({})
|
|
||||||
EOF
|
|
||||||
'';
|
|
||||||
}
|
|
||||||
|
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
programs.git = {
|
programs.git = {
|
||||||
enable = true;
|
enable = true;
|
||||||
userName = "ktkk";
|
|
||||||
userEmail = "dezuttereluka@gmail.com";
|
settings = {
|
||||||
extraConfig = {
|
user = {
|
||||||
url."ssh://git@ssh.github.com:443/" = {
|
name = "ktkk";
|
||||||
insteadOf = "git@github.com:";
|
email = "dezuttereluka@gmail.com";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue