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; [ 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 require("nvim-treesitter.configs").setup({
lua <<EOF highlight = {
require("nvim-treesitter.configs").setup({ enable = true,
highlight = { disable = {},
enable = true, },
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 = { 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";
}; };
}; };
}; };