Update nvim config

This commit is contained in:
ktkk 2025-11-13 13:14:38 +00:00
parent 9543b3b2d8
commit fdec652110

View file

@ -93,6 +93,13 @@
'';
plugins = with pkgs.vimPlugins; [
{
plugin = nvim-lspconfig;
type = "lua";
config = ''
vim.lsp.enable("gleam")
'';
}
{
plugin = (
nvim-treesitter.withPlugins (
@ -107,43 +114,53 @@
swift
typescript
javascript
jinja
json
nix
]
)
);
type = "lua";
config = ''
packadd! nvim-treesitter
lua <<EOF
require("nvim-treesitter.configs").setup({
highlight = {
enable = true,
require("nvim-treesitter.configs").setup({
highlight = {
enable = true,
disable = {},
},
incremental_selection = {
enable = true,
keymaps = {
init_selection = "gnn",
node_incremental = "grn",
scope_incremental = "grc",
node_decremental = "grm",
},
})
EOF
},
textobjects = {
select = {
enable = true,
lookahead = true,
keymaps = {
["af"] = "@function.outer",
["if"] = "@function.inner",
["ac"] = "@class.outer",
["ic"] = "@class.inner",
},
},
},
})
'';
}
{
plugin = nvim-lspconfig;
config = ''
packadd! nvim-lspconfig
lua <<EOF
local lspconfig = require("lspconfig")
lspconfig.gleam.setup({})
EOF
'';
}
];
};
programs.git = {
enable = true;
userName = "ktkk";
userEmail = "dezuttereluka@gmail.com";
extraConfig = {
url."ssh://git@ssh.github.com:443/" = {
insteadOf = "git@github.com:";
settings = {
user = {
name = "ktkk";
email = "dezuttereluka@gmail.com";
};
};
};