2025-05-21 15:35:29 -07:00
|
|
|
{ pkgs, ... }:
|
|
|
|
{
|
2025-05-19 21:42:58 -07:00
|
|
|
imports = [
|
|
|
|
./vim/default.nix
|
|
|
|
];
|
2025-07-04 21:30:20 -07:00
|
|
|
|
2025-05-12 15:19:01 -07:00
|
|
|
vim = {
|
2025-06-12 15:14:43 -07:00
|
|
|
#enable python provider
|
|
|
|
withPython3 = true;
|
|
|
|
python3Packages = [ "pynvim" ];
|
|
|
|
|
2025-05-21 10:44:59 -07:00
|
|
|
|
|
|
|
autocmds = [
|
2025-05-21 15:35:29 -07:00
|
|
|
#Autocommand to fall back to treesitter folding if LSP doesnt support it
|
2025-05-21 13:05:29 -07:00
|
|
|
{
|
2025-05-21 15:35:29 -07:00
|
|
|
event = [ "LspAttach" ];
|
2025-05-21 13:05:29 -07:00
|
|
|
callback = pkgs.lib.generators.mkLuaInline ''
|
|
|
|
function(args)
|
|
|
|
local client = vim.lsp.get_client_by_id(args.data.client_id)
|
|
|
|
if client:supports_method('textDocument/foldingRange') then
|
|
|
|
local win = vim.api.nvim_get_current_win()
|
|
|
|
vim.wo[win][0].foldexpr = 'v:lua.vim.lsp.foldexpr()'
|
|
|
|
end
|
|
|
|
end
|
|
|
|
'';
|
|
|
|
}
|
2025-05-21 10:44:59 -07:00
|
|
|
];
|
2025-05-21 15:35:29 -07:00
|
|
|
|
|
|
|
tabline = {
|
|
|
|
nvimBufferline.enable = true;
|
|
|
|
};
|
2025-05-27 19:56:17 -07:00
|
|
|
startPlugins = [
|
|
|
|
"nui-nvim"
|
|
|
|
];
|
2025-05-12 15:19:01 -07:00
|
|
|
theme = {
|
|
|
|
name = "catppuccin";
|
|
|
|
style = "mocha";
|
|
|
|
};
|
2025-05-20 21:30:54 -07:00
|
|
|
hideSearchHighlight = true;
|
2025-05-12 15:19:01 -07:00
|
|
|
};
|
|
|
|
}
|