Compare commits
2 commits
2bb4d85963
...
5bc27fbffb
Author | SHA1 | Date | |
---|---|---|---|
5bc27fbffb | |||
243c3e6b69 |
17 changed files with 420 additions and 83 deletions
|
@ -7,11 +7,12 @@
|
||||||
./plugins/cmp.nix
|
./plugins/cmp.nix
|
||||||
./plugins/codesnap.nix
|
./plugins/codesnap.nix
|
||||||
./plugins/conform.nix
|
./plugins/conform.nix
|
||||||
./plugins/dap.nix
|
./plugins/dap
|
||||||
./plugins/dashboard.nix
|
./plugins/dashboard.nix
|
||||||
./plugins/devcontainer.nix
|
./plugins/devcontainer.nix
|
||||||
./plugins/floatterm.nix
|
./plugins/floatterm.nix
|
||||||
./plugins/hover.nix
|
./plugins/hover.nix
|
||||||
|
./plugins/indent-blankline.nix
|
||||||
./plugins/lazygit.nix
|
./plugins/lazygit.nix
|
||||||
./plugins/lsp.nix
|
./plugins/lsp.nix
|
||||||
./plugins/lualine.nix
|
./plugins/lualine.nix
|
||||||
|
|
|
@ -5,9 +5,22 @@
|
||||||
enable = true;
|
enable = true;
|
||||||
settings = {
|
settings = {
|
||||||
sources = [
|
sources = [
|
||||||
{ name = "nvim_lsp"; }
|
{
|
||||||
{ name = "buffer"; }
|
name = "copilot";
|
||||||
{ name = "path"; }
|
group_index = 1;
|
||||||
|
}
|
||||||
|
{
|
||||||
|
name = "nvim_lsp";
|
||||||
|
group_index = 2;
|
||||||
|
}
|
||||||
|
{
|
||||||
|
name = "buffer";
|
||||||
|
group_index = 2;
|
||||||
|
}
|
||||||
|
{
|
||||||
|
name = "path";
|
||||||
|
group_index = 2;
|
||||||
|
}
|
||||||
];
|
];
|
||||||
mapping = {
|
mapping = {
|
||||||
"<C-Space>" = "cmp.mapping.complete()";
|
"<C-Space>" = "cmp.mapping.complete()";
|
||||||
|
|
|
@ -21,7 +21,7 @@
|
||||||
prettier = {
|
prettier = {
|
||||||
__unkeyed-1 = "prettierd";
|
__unkeyed-1 = "prettierd";
|
||||||
__unkeyed_2 = "prettier";
|
__unkeyed_2 = "prettier";
|
||||||
timeout_ms = "2000";
|
timeout_ms = "5000";
|
||||||
stop_after_first = "true";
|
stop_after_first = "true";
|
||||||
};
|
};
|
||||||
in
|
in
|
||||||
|
@ -178,7 +178,7 @@
|
||||||
{
|
{
|
||||||
mode = "n";
|
mode = "n";
|
||||||
key = "<leader>f";
|
key = "<leader>f";
|
||||||
action = ":Format<cr>";
|
action = "<CMD>Format<CR>";
|
||||||
options = {
|
options = {
|
||||||
desc = "Format";
|
desc = "Format";
|
||||||
silent = true;
|
silent = true;
|
||||||
|
|
|
@ -1,13 +0,0 @@
|
||||||
{ pkgs, lib, ... }:
|
|
||||||
{
|
|
||||||
programs.nixvim = {
|
|
||||||
plugins = {
|
|
||||||
dap = {
|
|
||||||
enable = true;
|
|
||||||
};
|
|
||||||
dap-python = {
|
|
||||||
enable = true;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
170
nixos/nvim/plugins/dap/default.nix
Normal file
170
nixos/nvim/plugins/dap/default.nix
Normal file
|
@ -0,0 +1,170 @@
|
||||||
|
{
|
||||||
|
imports = [
|
||||||
|
./dotnet.nix
|
||||||
|
];
|
||||||
|
programs.nixvim = {
|
||||||
|
plugins = {
|
||||||
|
dap.enable = true;
|
||||||
|
dap-python.enable = true;
|
||||||
|
dap-ui = {
|
||||||
|
enable = true;
|
||||||
|
settings = {
|
||||||
|
controls = {
|
||||||
|
enable = true;
|
||||||
|
element = "repl";
|
||||||
|
};
|
||||||
|
layouts = [
|
||||||
|
{
|
||||||
|
elements = [
|
||||||
|
{
|
||||||
|
id = "breakpoints";
|
||||||
|
size = 0.25;
|
||||||
|
}
|
||||||
|
{
|
||||||
|
id = "repl";
|
||||||
|
size = 0.75;
|
||||||
|
}
|
||||||
|
];
|
||||||
|
position = "bottom";
|
||||||
|
size = 10;
|
||||||
|
}
|
||||||
|
];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
keymaps = [
|
||||||
|
{
|
||||||
|
mode = "n";
|
||||||
|
key = "<F6>";
|
||||||
|
action = "<CMD>lua require('dapui').toggle()<CR>";
|
||||||
|
options = {
|
||||||
|
desc = "Toggle Debugging UI";
|
||||||
|
silent = true;
|
||||||
|
};
|
||||||
|
}
|
||||||
|
{
|
||||||
|
mode = "n";
|
||||||
|
key = "<F5>";
|
||||||
|
action = "<CMD>DapContinue<CR>";
|
||||||
|
options = {
|
||||||
|
desc = "Continue Debugging";
|
||||||
|
silent = false;
|
||||||
|
};
|
||||||
|
}
|
||||||
|
{
|
||||||
|
mode = "n";
|
||||||
|
key = "<F10>";
|
||||||
|
action = "<CMD>DapStepOver<CR>";
|
||||||
|
options = {
|
||||||
|
desc = "Step Over (Debugger)";
|
||||||
|
silent = true;
|
||||||
|
};
|
||||||
|
}
|
||||||
|
{
|
||||||
|
mode = "n";
|
||||||
|
key = "<F11>";
|
||||||
|
action = "<CMD>DapStepInto<CR>";
|
||||||
|
options = {
|
||||||
|
desc = "Step Into (Debugger)";
|
||||||
|
silent = true;
|
||||||
|
};
|
||||||
|
}
|
||||||
|
{
|
||||||
|
mode = "n";
|
||||||
|
key = "<F12>";
|
||||||
|
action = "<CMD>DapStepOut<CR>";
|
||||||
|
options = {
|
||||||
|
desc = "Step Out (Debugger)";
|
||||||
|
silent = true;
|
||||||
|
};
|
||||||
|
}
|
||||||
|
{
|
||||||
|
mode = "n";
|
||||||
|
key = "<leader>b";
|
||||||
|
action = "<CMD>DapToggleBreakpoint<CR>";
|
||||||
|
options = {
|
||||||
|
desc = "Toggle Breakpoint (Debugger)";
|
||||||
|
silent = true;
|
||||||
|
};
|
||||||
|
}
|
||||||
|
{
|
||||||
|
mode = "n";
|
||||||
|
key = "<leader>B";
|
||||||
|
action = "<CMD>DapSetBreakpoint<CR>";
|
||||||
|
options = {
|
||||||
|
desc = "Set Breakpoint (Debugger)";
|
||||||
|
silent = false;
|
||||||
|
};
|
||||||
|
}
|
||||||
|
{
|
||||||
|
mode = "n";
|
||||||
|
key = "<leader>lp";
|
||||||
|
action = "<CMD>lua require('dap').set_breakpoint(nil, nil, vim.fn.input('Log point message: '))<CR>";
|
||||||
|
options = {
|
||||||
|
desc = "Set Log Point (Debugger)";
|
||||||
|
silent = false;
|
||||||
|
};
|
||||||
|
}
|
||||||
|
{
|
||||||
|
mode = "n";
|
||||||
|
key = "<leader>dr";
|
||||||
|
action = "<CMD>DapToggleRepl<CR>";
|
||||||
|
options = {
|
||||||
|
desc = "Toggle REPL";
|
||||||
|
silent = true;
|
||||||
|
};
|
||||||
|
}
|
||||||
|
{
|
||||||
|
mode = "n";
|
||||||
|
key = "<leader>dl";
|
||||||
|
action = "<CMD>lua require('dap').run_last()<CR>";
|
||||||
|
options = {
|
||||||
|
desc = "Run Last (Debugger)";
|
||||||
|
silent = false;
|
||||||
|
};
|
||||||
|
}
|
||||||
|
{
|
||||||
|
mode = [
|
||||||
|
"n"
|
||||||
|
"v"
|
||||||
|
];
|
||||||
|
key = "<leader>dh";
|
||||||
|
action = "<CMD>lua require('dap.ui.widgets').hover()<CR>";
|
||||||
|
options = {
|
||||||
|
desc = "TODO";
|
||||||
|
silent = true;
|
||||||
|
};
|
||||||
|
}
|
||||||
|
{
|
||||||
|
mode = [
|
||||||
|
"n"
|
||||||
|
"v"
|
||||||
|
];
|
||||||
|
key = "<leader>dh";
|
||||||
|
action = "<CMD>lua require('dap.ui.widgets').preview()<CR>";
|
||||||
|
options = {
|
||||||
|
desc = "TODO";
|
||||||
|
silent = true;
|
||||||
|
};
|
||||||
|
}
|
||||||
|
{
|
||||||
|
mode = "n";
|
||||||
|
key = "<leader>df";
|
||||||
|
action = "<CMD>lua require('dap.ui.widgets').centered_float(widgets.frames)<CR>";
|
||||||
|
options = {
|
||||||
|
desc = "TODO";
|
||||||
|
silent = true;
|
||||||
|
};
|
||||||
|
}
|
||||||
|
{
|
||||||
|
mode = "n";
|
||||||
|
key = "<leader>ds";
|
||||||
|
action = "<CMD>lua require('dap.ui.widgets').centered_float(widgets.scopes)<CR>";
|
||||||
|
options = {
|
||||||
|
desc = "TODO";
|
||||||
|
silent = true;
|
||||||
|
};
|
||||||
|
}
|
||||||
|
];
|
||||||
|
};
|
||||||
|
}
|
75
nixos/nvim/plugins/dap/dotnet.nix
Normal file
75
nixos/nvim/plugins/dap/dotnet.nix
Normal file
|
@ -0,0 +1,75 @@
|
||||||
|
{ pkgs, lib, ... }:
|
||||||
|
{
|
||||||
|
programs.nixvim = {
|
||||||
|
extraPackages = with pkgs; [
|
||||||
|
netcoredbg
|
||||||
|
];
|
||||||
|
plugins.dap = {
|
||||||
|
adapters = {
|
||||||
|
executables = {
|
||||||
|
coreclr = {
|
||||||
|
command = "${lib.getExe pkgs.netcoredbg}";
|
||||||
|
args = [ "--interpreter=vscode" ];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
configurations =
|
||||||
|
let
|
||||||
|
dotnet_config = {
|
||||||
|
type = "coreclr";
|
||||||
|
name = "launch - netcoredbg";
|
||||||
|
request = "launch";
|
||||||
|
program.__raw = # lua
|
||||||
|
''
|
||||||
|
function()
|
||||||
|
if vim.fn.confirm("Should I recompile first?", "&yes\n&no", 2) == 1 then
|
||||||
|
vim.g.dotnet_build_project()
|
||||||
|
end
|
||||||
|
return vim.g.dotnet_get_dll_path()
|
||||||
|
end
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
in
|
||||||
|
{
|
||||||
|
cs = [ dotnet_config ];
|
||||||
|
fsharp = [ dotnet_config ];
|
||||||
|
};
|
||||||
|
luaConfig.pre = # lua
|
||||||
|
''
|
||||||
|
vim.g.dotnet_build_project = function()
|
||||||
|
local default_path = vim.fn.getcwd() .. '/'
|
||||||
|
if vim.g['dotnet_last_proj_path'] ~= nil then
|
||||||
|
default_path = vim.g['dotnet_last_proj_path']
|
||||||
|
end
|
||||||
|
local path = vim.fn.input('Path to your *proj file', default_path, 'file')
|
||||||
|
vim.g['dotnet_last_proj_path'] = path
|
||||||
|
local cmd = 'dotnet build -c Debug ' .. path .. ' > /dev/null'
|
||||||
|
print("")
|
||||||
|
print('Cmd to execute: ' .. cmd)
|
||||||
|
local f = os.execute(cmd)
|
||||||
|
if f == 0 then
|
||||||
|
print('\nBuild: ✔️ ')
|
||||||
|
else
|
||||||
|
print('\nBuild: ❌ (code: ' .. f .. ')')
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
vim.g.dotnet_get_dll_path = function()
|
||||||
|
local request = function()
|
||||||
|
return vim.fn.input('Path to dll', vim.fn.getcwd() .. '/bin/Debug/', 'file')
|
||||||
|
end
|
||||||
|
|
||||||
|
if vim.g['dotnet_last_dll_path'] == nil then
|
||||||
|
vim.g['dotnet_last_dll_path'] = request()
|
||||||
|
else
|
||||||
|
if vim.fn.confirm('Do you want to change the path to dll?\n' .. vim.g['dotnet_last_dll_path'], '&yes\n&no', 2) == 1 then
|
||||||
|
vim.g['dotnet_last_dll_path'] = request()
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
return vim.g['dotnet_last_dll_path']
|
||||||
|
end
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
|
@ -19,17 +19,8 @@
|
||||||
keymaps = [
|
keymaps = [
|
||||||
{
|
{
|
||||||
mode = "n";
|
mode = "n";
|
||||||
key = "<leader>d";
|
key = "<leader>dcs";
|
||||||
action = "";
|
action = "<CMD>DevcontainerStart<CR>";
|
||||||
options = {
|
|
||||||
desc = "Manage Dev Container";
|
|
||||||
silent = true;
|
|
||||||
};
|
|
||||||
}
|
|
||||||
{
|
|
||||||
mode = "n";
|
|
||||||
key = "<leader>ds";
|
|
||||||
action = ":DevcontainerStart<CR>";
|
|
||||||
options = {
|
options = {
|
||||||
desc = "Start Dev Container";
|
desc = "Start Dev Container";
|
||||||
silent = false;
|
silent = false;
|
||||||
|
@ -37,8 +28,8 @@
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
mode = "n";
|
mode = "n";
|
||||||
key = "<leader>dc";
|
key = "<leader>dcc";
|
||||||
action = ":DevcontainerStopAll<CR>";
|
action = "<CMD>DevcontainerStopAll<CR>";
|
||||||
options = {
|
options = {
|
||||||
desc = "Stop Dev Container";
|
desc = "Stop Dev Container";
|
||||||
silent = false;
|
silent = false;
|
||||||
|
@ -46,8 +37,8 @@
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
mode = "n";
|
mode = "n";
|
||||||
key = "<leader>dr";
|
key = "<leader>dcr";
|
||||||
action = ":DevcontainerRemoveAll<CR>";
|
action = "<CMD>DevcontainerRemoveAll<CR>";
|
||||||
options = {
|
options = {
|
||||||
desc = "Remove Dev Container";
|
desc = "Remove Dev Container";
|
||||||
silent = false;
|
silent = false;
|
||||||
|
@ -55,8 +46,8 @@
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
mode = "n";
|
mode = "n";
|
||||||
key = "<leader>da";
|
key = "<leader>dca";
|
||||||
action = ":DevcontainerAttach<CR>";
|
action = "<CMD>DevcontainerAttach<CR>";
|
||||||
options = {
|
options = {
|
||||||
desc = "Attach to Dev Container";
|
desc = "Attach to Dev Container";
|
||||||
silent = false;
|
silent = false;
|
||||||
|
@ -64,7 +55,7 @@
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
mode = "n";
|
mode = "n";
|
||||||
key = "<leader>de";
|
key = "<leader>dce";
|
||||||
action = ":DevcontainerExec ";
|
action = ":DevcontainerExec ";
|
||||||
options = {
|
options = {
|
||||||
desc = "Execute Command in Dev Container";
|
desc = "Execute Command in Dev Container";
|
||||||
|
@ -73,8 +64,8 @@
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
mode = "n";
|
mode = "n";
|
||||||
key = "<leader>dl";
|
key = "<leader>dcl";
|
||||||
action = ":DevcontainerLogs<CR>";
|
action = "<CMD>DevcontainerLogs<CR>";
|
||||||
options = {
|
options = {
|
||||||
desc = "Open Dev Container Logs";
|
desc = "Open Dev Container Logs";
|
||||||
silent = true;
|
silent = true;
|
||||||
|
@ -82,8 +73,8 @@
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
mode = "n";
|
mode = "n";
|
||||||
key = "<leader>dz";
|
key = "<leader>dcz";
|
||||||
action = ":DevcontainerEditNearestConfig<CR>";
|
action = "<CMD>DevcontainerEditNearestConfig<CR>";
|
||||||
options = {
|
options = {
|
||||||
desc = "Edit Nearest devcontainer.json";
|
desc = "Edit Nearest devcontainer.json";
|
||||||
silent = false;
|
silent = false;
|
||||||
|
|
|
@ -17,8 +17,11 @@
|
||||||
''
|
''
|
||||||
require("FloatTerm").setup({
|
require("FloatTerm").setup({
|
||||||
window_config = {
|
window_config = {
|
||||||
|
border = 'shadow',
|
||||||
title = "Terminal",
|
title = "Terminal",
|
||||||
},
|
},
|
||||||
|
pad_vertical = 5,
|
||||||
|
pad_horizontal = 10,
|
||||||
})
|
})
|
||||||
'';
|
'';
|
||||||
keymaps = [
|
keymaps = [
|
||||||
|
|
|
@ -21,7 +21,7 @@
|
||||||
mouse_providers = {
|
mouse_providers = {
|
||||||
'LSP',
|
'LSP',
|
||||||
},
|
},
|
||||||
mouse_delay = 100
|
mouse_delay = 400
|
||||||
})
|
})
|
||||||
vim.o.mousemoveevent = true
|
vim.o.mousemoveevent = true
|
||||||
'';
|
'';
|
||||||
|
|
59
nixos/nvim/plugins/indent-blankline.nix
Normal file
59
nixos/nvim/plugins/indent-blankline.nix
Normal file
|
@ -0,0 +1,59 @@
|
||||||
|
{
|
||||||
|
programs.nixvim = {
|
||||||
|
plugins = {
|
||||||
|
rainbow-delimiters = {
|
||||||
|
enable = true;
|
||||||
|
highlight.__raw = "highlight";
|
||||||
|
};
|
||||||
|
indent-blankline = {
|
||||||
|
enable = true;
|
||||||
|
settings = {
|
||||||
|
exclude = {
|
||||||
|
buftypes = [
|
||||||
|
"terminal"
|
||||||
|
"quickfix"
|
||||||
|
];
|
||||||
|
filetypes = [
|
||||||
|
""
|
||||||
|
"checkhealth"
|
||||||
|
"help"
|
||||||
|
"lspinfo"
|
||||||
|
"packer"
|
||||||
|
"TelescopePrompt"
|
||||||
|
"TelescopeResults"
|
||||||
|
"yaml"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
scope = {
|
||||||
|
show_start = false;
|
||||||
|
show_end = false;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
extraConfigLuaPre = # lua
|
||||||
|
''
|
||||||
|
local highlight = {
|
||||||
|
"RainbowRed",
|
||||||
|
"RainbowYellow",
|
||||||
|
"RainbowBlue",
|
||||||
|
"RainbowPeach",
|
||||||
|
"RainbowGreen",
|
||||||
|
"RainbowMauve",
|
||||||
|
"RainbowTeal",
|
||||||
|
}
|
||||||
|
local hooks = require("ibl.hooks")
|
||||||
|
hooks.register(hooks.type.HIGHLIGHT_SETUP, function()
|
||||||
|
vim.api.nvim_set_hl(0, "RainbowRed", { fg = "#f38ba8" })
|
||||||
|
vim.api.nvim_set_hl(0, "RainbowYellow", { fg = "#f9e2af" })
|
||||||
|
vim.api.nvim_set_hl(0, "RainbowBlue", { fg = "#89b4fa" })
|
||||||
|
vim.api.nvim_set_hl(0, "RainbowPeach", { fg = "#fab387" })
|
||||||
|
vim.api.nvim_set_hl(0, "RainbowGreen", { fg = "#a6e3a1" })
|
||||||
|
vim.api.nvim_set_hl(0, "RainbowMauve", { fg = "#cba6f7" })
|
||||||
|
vim.api.nvim_set_hl(0, "RainbowTeal", { fg = "#94e2d5" })
|
||||||
|
end)
|
||||||
|
--vim.g.rainbow_delimiters = { highlight = highlight }
|
||||||
|
'';
|
||||||
|
extraConfigLuaPost = "hooks.register(hooks.type.SCOPE_HIGHLIGHT, hooks.builtin.scope_highlight_from_extmark)";
|
||||||
|
};
|
||||||
|
}
|
|
@ -8,7 +8,7 @@
|
||||||
{
|
{
|
||||||
mode = "n";
|
mode = "n";
|
||||||
key = "<leader>g";
|
key = "<leader>g";
|
||||||
action = "<cmd>LazyGit<cr>";
|
action = "<CMD>LazyGit<CR>";
|
||||||
options = {
|
options = {
|
||||||
desc = "LazyGit";
|
desc = "LazyGit";
|
||||||
silent = true;
|
silent = true;
|
||||||
|
|
|
@ -29,7 +29,11 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
ruff.enable = true; # Python
|
ruff.enable = true; # Python
|
||||||
csharp_ls.enable = true;
|
omnisharp = {
|
||||||
|
enable = true; # C#
|
||||||
|
package = pkgs.omnisharp-roslyn;
|
||||||
|
cmd = [ "${lib.getExe pkgs.omnisharp-roslyn}" ];
|
||||||
|
};
|
||||||
nil_ls = {
|
nil_ls = {
|
||||||
enable = true; # Nix
|
enable = true; # Nix
|
||||||
settings.formatting.command = [ "${lib.getExe pkgs.nixfmt-rfc-style}" ];
|
settings.formatting.command = [ "${lib.getExe pkgs.nixfmt-rfc-style}" ];
|
||||||
|
@ -38,6 +42,7 @@
|
||||||
enable = true;
|
enable = true;
|
||||||
package = pkgs.callPackage ../../../packages/luau-lsp.nix { inherit pkgs; };
|
package = pkgs.callPackage ../../../packages/luau-lsp.nix { inherit pkgs; };
|
||||||
};
|
};
|
||||||
|
lua_ls.enable = true;
|
||||||
html.enable = true;
|
html.enable = true;
|
||||||
jsonls.enable = true;
|
jsonls.enable = true;
|
||||||
yamlls.enable = true;
|
yamlls.enable = true;
|
||||||
|
@ -47,6 +52,7 @@
|
||||||
dockerls.enable = true;
|
dockerls.enable = true;
|
||||||
docker_compose_language_service.enable = true;
|
docker_compose_language_service.enable = true;
|
||||||
bashls.enable = true;
|
bashls.enable = true;
|
||||||
|
ts_ls.enable = true;
|
||||||
denols.enable = true; # JavaScript / TypeScript (Deno)
|
denols.enable = true; # JavaScript / TypeScript (Deno)
|
||||||
eslint.enable = true; # JavaScript / TypeScript
|
eslint.enable = true; # JavaScript / TypeScript
|
||||||
typos_lsp.enable = true;
|
typos_lsp.enable = true;
|
||||||
|
@ -76,11 +82,24 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
extraPlugins = with pkgs.vimPlugins; [
|
||||||
|
vim-csharp
|
||||||
|
# (pkgs.vimUtils.buildVimPlugin {
|
||||||
|
# # https://github.com/OrangeT/vim-csharp
|
||||||
|
# name = "vim-csharp";
|
||||||
|
# src = pkgs.fetchFromGitHub {
|
||||||
|
# owner = "OrangeT";
|
||||||
|
# repo = "vim-csharp";
|
||||||
|
# rev = "b5982fc69bba7d507638a308d6875b031054280d";
|
||||||
|
# sha256 = "";
|
||||||
|
# };
|
||||||
|
# })
|
||||||
|
];
|
||||||
keymaps = [
|
keymaps = [
|
||||||
{
|
{
|
||||||
mode = "n";
|
mode = "n";
|
||||||
key = "<leader>x";
|
key = "<leader>x";
|
||||||
action = ":Trouble<CR>";
|
action = "<CMD>Trouble<CR>";
|
||||||
options = {
|
options = {
|
||||||
desc = "Trouble";
|
desc = "Trouble";
|
||||||
silent = true;
|
silent = true;
|
||||||
|
@ -89,7 +108,7 @@
|
||||||
{
|
{
|
||||||
mode = "n";
|
mode = "n";
|
||||||
key = "<leader>xx";
|
key = "<leader>xx";
|
||||||
action = ":Trouble diagnostics toggle<CR>";
|
action = "<CMD>Trouble diagnostics toggle<CR>";
|
||||||
options = {
|
options = {
|
||||||
desc = "Diagnostics (Trouble)";
|
desc = "Diagnostics (Trouble)";
|
||||||
silent = true;
|
silent = true;
|
||||||
|
@ -98,7 +117,7 @@
|
||||||
{
|
{
|
||||||
mode = "n";
|
mode = "n";
|
||||||
key = "<leader>xX";
|
key = "<leader>xX";
|
||||||
action = ":Trouble diagnostics toggle filter.buf=0<CR>";
|
action = "<CMD>Trouble diagnostics toggle filter.buf=0<CR>";
|
||||||
options = {
|
options = {
|
||||||
desc = "Buffer Diagnostics (Trouble)";
|
desc = "Buffer Diagnostics (Trouble)";
|
||||||
silent = true;
|
silent = true;
|
||||||
|
@ -107,7 +126,7 @@
|
||||||
{
|
{
|
||||||
mode = "n";
|
mode = "n";
|
||||||
key = "<leader>xs";
|
key = "<leader>xs";
|
||||||
action = ":Trouble symbols toggle focus=false<CR>";
|
action = "<CMD>Trouble symbols toggle focus=false<CR>";
|
||||||
options = {
|
options = {
|
||||||
desc = "Symbols (Trouble)";
|
desc = "Symbols (Trouble)";
|
||||||
silent = true;
|
silent = true;
|
||||||
|
@ -116,7 +135,7 @@
|
||||||
{
|
{
|
||||||
mode = "n";
|
mode = "n";
|
||||||
key = "<leader>xd";
|
key = "<leader>xd";
|
||||||
action = ":Trouble lsp_definitions toggle<CR>";
|
action = "<CMD>Trouble lsp_definitions toggle<CR>";
|
||||||
options = {
|
options = {
|
||||||
desc = "LSP Definitions / references / ... (Trouble)";
|
desc = "LSP Definitions / references / ... (Trouble)";
|
||||||
silent = true;
|
silent = true;
|
||||||
|
@ -125,7 +144,7 @@
|
||||||
{
|
{
|
||||||
mode = "n";
|
mode = "n";
|
||||||
key = "<leader>xl";
|
key = "<leader>xl";
|
||||||
action = ":Trouble loclist toggle<CR>";
|
action = "<CMD>Trouble loclist toggle<CR>";
|
||||||
options = {
|
options = {
|
||||||
desc = "Location List (Trouble)";
|
desc = "Location List (Trouble)";
|
||||||
silent = true;
|
silent = true;
|
||||||
|
@ -134,7 +153,7 @@
|
||||||
{
|
{
|
||||||
mode = "n";
|
mode = "n";
|
||||||
key = "<leader>xq";
|
key = "<leader>xq";
|
||||||
action = ":Trouble qflist toggle<CR>";
|
action = "<CMD>Trouble qflist toggle<CR>";
|
||||||
options = {
|
options = {
|
||||||
desc = "Quickfix (Trouble)";
|
desc = "Quickfix (Trouble)";
|
||||||
silent = true;
|
silent = true;
|
||||||
|
|
|
@ -25,7 +25,7 @@
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
local function toggle_profile()
|
vim.g.toggle_profile = function()
|
||||||
local prof = require("profile")
|
local prof = require("profile")
|
||||||
if prof.is_recording() then
|
if prof.is_recording() then
|
||||||
prof.stop()
|
prof.stop()
|
||||||
|
@ -46,18 +46,17 @@
|
||||||
end)
|
end)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
vim.keymap.set("", "<leader>p", toggle_profile, { desc = "Toggle Profiling", silent = true })
|
|
||||||
'';
|
'';
|
||||||
# keymaps = [
|
keymaps = [
|
||||||
# {
|
{
|
||||||
# mode = "n";
|
mode = "n";
|
||||||
# key = "<leader>p";
|
key = "<leader>p";
|
||||||
# action = "toggle_profile";
|
action = "<CMD>lua vim.g.toggle_profile()<CR>";
|
||||||
# options = {
|
options = {
|
||||||
# desc = "Toggle Profiling";
|
desc = "Toggle Profiling";
|
||||||
# silent = true;
|
silent = true;
|
||||||
# };
|
};
|
||||||
# }
|
}
|
||||||
# ];
|
];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -105,7 +105,7 @@
|
||||||
{
|
{
|
||||||
mode = "n";
|
mode = "n";
|
||||||
key = "<leader>te";
|
key = "<leader>te";
|
||||||
action = ":Telescope file_browser path=%:p:h select_buffer=true<CR>";
|
action = "<CMD>Telescope file_browser path=%:p:h select_buffer=true<CR>";
|
||||||
options = {
|
options = {
|
||||||
desc = "File Explorer";
|
desc = "File Explorer";
|
||||||
silent = true;
|
silent = true;
|
||||||
|
@ -114,7 +114,7 @@
|
||||||
{
|
{
|
||||||
mode = "n";
|
mode = "n";
|
||||||
key = "<leader>tr";
|
key = "<leader>tr";
|
||||||
action = ":Telescope live_grep<CR>";
|
action = "<CMD>Telescope live_grep<CR>";
|
||||||
options = {
|
options = {
|
||||||
desc = "Live Grep";
|
desc = "Live Grep";
|
||||||
silent = true;
|
silent = true;
|
||||||
|
@ -123,7 +123,7 @@
|
||||||
{
|
{
|
||||||
mode = "n";
|
mode = "n";
|
||||||
key = "<leader>ta";
|
key = "<leader>ta";
|
||||||
action = ":Telescope aerial<CR>";
|
action = "<CMD>Telescope aerial<CR>";
|
||||||
options = {
|
options = {
|
||||||
desc = "Aerial";
|
desc = "Aerial";
|
||||||
silent = true;
|
silent = true;
|
||||||
|
@ -132,7 +132,7 @@
|
||||||
{
|
{
|
||||||
mode = "n";
|
mode = "n";
|
||||||
key = "<leader>tb";
|
key = "<leader>tb";
|
||||||
action = ":Telescope buffers<CR>";
|
action = "<CMD>Telescope buffers<CR>";
|
||||||
options = {
|
options = {
|
||||||
desc = "Buffers";
|
desc = "Buffers";
|
||||||
silent = true;
|
silent = true;
|
||||||
|
@ -141,7 +141,7 @@
|
||||||
{
|
{
|
||||||
mode = "n";
|
mode = "n";
|
||||||
key = "<leader>tt";
|
key = "<leader>tt";
|
||||||
action = ":Telescope colorscheme<CR>";
|
action = "<CMD>Telescope colorscheme<CR>";
|
||||||
options = {
|
options = {
|
||||||
desc = "Color Schemes";
|
desc = "Color Schemes";
|
||||||
silent = true;
|
silent = true;
|
||||||
|
@ -150,7 +150,7 @@
|
||||||
{
|
{
|
||||||
mode = "n";
|
mode = "n";
|
||||||
key = "<leader>tk";
|
key = "<leader>tk";
|
||||||
action = ":Telescope keymaps<CR>";
|
action = "<CMD>Telescope keymaps<CR>";
|
||||||
options = {
|
options = {
|
||||||
desc = "Keymaps";
|
desc = "Keymaps";
|
||||||
silent = true;
|
silent = true;
|
||||||
|
@ -159,7 +159,6 @@
|
||||||
{
|
{
|
||||||
mode = "n";
|
mode = "n";
|
||||||
key = "<leader>tp";
|
key = "<leader>tp";
|
||||||
# action = ":Telescope repo list<CR>";
|
|
||||||
action = "<CMD>Telescope project display_type=full hide_workspace=true<CR>";
|
action = "<CMD>Telescope project display_type=full hide_workspace=true<CR>";
|
||||||
options = {
|
options = {
|
||||||
desc = "Projects";
|
desc = "Projects";
|
||||||
|
@ -169,7 +168,7 @@
|
||||||
{
|
{
|
||||||
mode = "n";
|
mode = "n";
|
||||||
key = "<leader>tc";
|
key = "<leader>tc";
|
||||||
action = ":Telescope commands<CR>";
|
action = "<CMD>Telescope commands<CR>";
|
||||||
options = {
|
options = {
|
||||||
desc = "Commands";
|
desc = "Commands";
|
||||||
silent = true;
|
silent = true;
|
||||||
|
@ -178,7 +177,7 @@
|
||||||
{
|
{
|
||||||
mode = "n";
|
mode = "n";
|
||||||
key = "<leader>tm";
|
key = "<leader>tm";
|
||||||
action = ":Telescope man_pages<CR>";
|
action = "<CMD>Telescope man_pages<CR>";
|
||||||
options = {
|
options = {
|
||||||
desc = "Man Pages";
|
desc = "Man Pages";
|
||||||
silent = true;
|
silent = true;
|
||||||
|
@ -187,7 +186,7 @@
|
||||||
{
|
{
|
||||||
mode = "n";
|
mode = "n";
|
||||||
key = "<leader>tn";
|
key = "<leader>tn";
|
||||||
action = ":Telescope vim_options<CR>";
|
action = "<CMD>Telescope vim_options<CR>";
|
||||||
options = {
|
options = {
|
||||||
desc = "Vim Options";
|
desc = "Vim Options";
|
||||||
silent = true;
|
silent = true;
|
||||||
|
@ -197,7 +196,7 @@
|
||||||
{
|
{
|
||||||
mode = "n";
|
mode = "n";
|
||||||
key = "<leader>tgc";
|
key = "<leader>tgc";
|
||||||
action = ":Telescope git_commits<CR>";
|
action = "<CMD>Telescope git_commits<CR>";
|
||||||
options = {
|
options = {
|
||||||
desc = "Git Commits";
|
desc = "Git Commits";
|
||||||
silent = true;
|
silent = true;
|
||||||
|
@ -206,7 +205,7 @@
|
||||||
{
|
{
|
||||||
mode = "n";
|
mode = "n";
|
||||||
key = "<leader>tgb";
|
key = "<leader>tgb";
|
||||||
action = ":Telescope git_branches<CR>";
|
action = "<CMD>Telescope git_branches<CR>";
|
||||||
options = {
|
options = {
|
||||||
desc = "Git Branches";
|
desc = "Git Branches";
|
||||||
silent = true;
|
silent = true;
|
||||||
|
@ -215,7 +214,7 @@
|
||||||
{
|
{
|
||||||
mode = "n";
|
mode = "n";
|
||||||
key = "<leader>tgs";
|
key = "<leader>tgs";
|
||||||
action = ":Telescope git_status<CR>";
|
action = "<CMD>Telescope git_status<CR>";
|
||||||
options = {
|
options = {
|
||||||
desc = "Git Status";
|
desc = "Git Status";
|
||||||
silent = true;
|
silent = true;
|
||||||
|
@ -224,7 +223,7 @@
|
||||||
{
|
{
|
||||||
mode = "n";
|
mode = "n";
|
||||||
key = "<leader>tgS";
|
key = "<leader>tgS";
|
||||||
action = ":Telescope git_stash<CR>";
|
action = "<CMD>Telescope git_stash<CR>";
|
||||||
options = {
|
options = {
|
||||||
desc = "Git Stash";
|
desc = "Git Stash";
|
||||||
silent = true;
|
silent = true;
|
||||||
|
|
|
@ -46,6 +46,7 @@
|
||||||
bash
|
bash
|
||||||
c
|
c
|
||||||
cpp
|
cpp
|
||||||
|
c_sharp
|
||||||
css
|
css
|
||||||
dockerfile
|
dockerfile
|
||||||
go
|
go
|
||||||
|
|
|
@ -31,9 +31,27 @@
|
||||||
enable = true;
|
enable = true;
|
||||||
#lazyLoad.enable = true;
|
#lazyLoad.enable = true;
|
||||||
settings = {
|
settings = {
|
||||||
|
transparent_background = false;
|
||||||
|
term_colors = false;
|
||||||
styles = {
|
styles = {
|
||||||
conditionals = null;
|
conditionals = null;
|
||||||
};
|
};
|
||||||
|
custom_highlights = # lua
|
||||||
|
''
|
||||||
|
function(colors)
|
||||||
|
return {
|
||||||
|
Comment = { fg = "#f4b8e4", style = { "italic" } },
|
||||||
|
["@punctuation.comment"] = { fg = "#f4b8e4", style = { "italic" } },
|
||||||
|
["@variable"] = { fg = "#82eaf0" },
|
||||||
|
["@operator"] = { fg = "#EBA0AC" },
|
||||||
|
["@meta.block.paradox"] = { fg = "#EBA0AC" },
|
||||||
|
["@comment.shebang"] = { fg = "#ef9f76", style = { "italic", "bold" } },
|
||||||
|
["@punctuation.comment.shebang"] = { fg = "#ef9f76", style = { "italic", "bold" } },
|
||||||
|
["@string.special.shell"] = { fg = "#82e5f0" },
|
||||||
|
["@property.ts"] = { fg = "#32d5e7" },
|
||||||
|
}
|
||||||
|
end
|
||||||
|
'';
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
plugins = {
|
plugins = {
|
||||||
|
@ -48,7 +66,7 @@
|
||||||
image.enable = true;
|
image.enable = true;
|
||||||
which-key.enable = true;
|
which-key.enable = true;
|
||||||
neocord.enable = false;
|
neocord.enable = false;
|
||||||
rainbow-delimiters.enable = true;
|
lazydev.enable = true;
|
||||||
neoconf.enable = true;
|
neoconf.enable = true;
|
||||||
colorizer = {
|
colorizer = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
@ -59,7 +77,6 @@
|
||||||
comment.enable = true;
|
comment.enable = true;
|
||||||
dotnet.enable = true;
|
dotnet.enable = true;
|
||||||
sqlite-lua.enable = true;
|
sqlite-lua.enable = true;
|
||||||
lazydev.enable = true;
|
|
||||||
};
|
};
|
||||||
userCommands = {
|
userCommands = {
|
||||||
ViewInit = {
|
ViewInit = {
|
||||||
|
@ -74,6 +91,7 @@
|
||||||
'';
|
'';
|
||||||
extraConfigVim = ''
|
extraConfigVim = ''
|
||||||
set number " enable number lines
|
set number " enable number lines
|
||||||
|
set relativenumber " enable relative number lines
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,4 +1,7 @@
|
||||||
{ pkgs, lib, ...
|
{
|
||||||
|
pkgs,
|
||||||
|
lib,
|
||||||
|
...
|
||||||
}:
|
}:
|
||||||
pkgs.stdenv.mkDerivation rec {
|
pkgs.stdenv.mkDerivation rec {
|
||||||
pname = "luau-lsp";
|
pname = "luau-lsp";
|
||||||
|
@ -12,8 +15,7 @@ pkgs.stdenv.mkDerivation rec {
|
||||||
fetchSubmodules = true;
|
fetchSubmodules = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [ pkgs.cmake ]
|
nativeBuildInputs = [ pkgs.cmake ] ++ lib.optional pkgs.stdenv.isLinux pkgs.gcc9;
|
||||||
++ lib.optional pkgs.stdenv.isLinux pkgs.gcc9;
|
|
||||||
|
|
||||||
buildPhase = ''
|
buildPhase = ''
|
||||||
runHook preBuild
|
runHook preBuild
|
||||||
|
|
Loading…
Add table
Reference in a new issue