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; [
|
||||
{
|
||||
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,
|
||||
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 = {
|
||||
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";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue