584 current 2024-05-14 14:32:25 24.05.20240512.2057814 6.8.6-zen1 *
This commit is contained in:
parent
1a9bd617ba
commit
8f25c2fc0b
6 changed files with 31 additions and 22 deletions
|
|
@ -44,14 +44,15 @@
|
||||||
services.fstrim.enable = true;
|
services.fstrim.enable = true;
|
||||||
services.mullvad-vpn.enable = true;
|
services.mullvad-vpn.enable = true;
|
||||||
|
|
||||||
systemd.services."mullvad-daemon".postStart = let
|
# disable autoconnect for now
|
||||||
mullvad = config.services.mullvad-vpn.package;
|
# systemd.services."mullvad-daemon".postStart = let
|
||||||
in ''
|
# mullvad = config.services.mullvad-vpn.package;
|
||||||
while ! ${mullvad}/bin/mullvad status >/dev/null; do sleep 1; done
|
# in ''
|
||||||
${mullvad}/bin/mullvad auto-connect set on
|
# while ! ${mullvad}/bin/mullvad status >/dev/null; do sleep 1; done
|
||||||
${mullvad}/bin/mullvad tunnel set ipv6 on
|
# ${mullvad}/bin/mullvad auto-connect set on
|
||||||
${mullvad}/bin/mullvad connect
|
# ${mullvad}/bin/mullvad tunnel set ipv6 on
|
||||||
'';
|
# ${mullvad}/bin/mullvad connect
|
||||||
|
# '';
|
||||||
|
|
||||||
services.transmission = {
|
services.transmission = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
|
||||||
|
|
@ -34,6 +34,8 @@ return {
|
||||||
-- Neotree
|
-- Neotree
|
||||||
[l("e")] = { cmd("Neotree toggle"), fmt("FileTree", "Toggle Neotree") },
|
[l("e")] = { cmd("Neotree toggle"), fmt("FileTree", "Toggle Neotree") },
|
||||||
|
|
||||||
|
[l("ng")] = { cmd("Neogit"), fmt("Git", "Open Neogit") },
|
||||||
|
|
||||||
-- move.nvim
|
-- move.nvim
|
||||||
["<A-j>"] = { cmd("MoveLine(1)"), "Move line down" },
|
["<A-j>"] = { cmd("MoveLine(1)"), "Move line down" },
|
||||||
["<A-k>"] = { cmd("MoveLine(-1)"), "Move line up" },
|
["<A-k>"] = { cmd("MoveLine(-1)"), "Move line up" },
|
||||||
|
|
|
||||||
|
|
@ -1,13 +1,13 @@
|
||||||
local lsp = require("lsp.functions")
|
local lsp = require("lsp.functions")
|
||||||
|
|
||||||
return {
|
return {
|
||||||
["textDocument/codeLens"] = {
|
-- ["textDocument/codeLens"] = {
|
||||||
event = { "BufEnter", "InsertLeave" },
|
-- event = { "BufEnter", "InsertLeave" },
|
||||||
opts = {
|
-- opts = {
|
||||||
group = vim.api.nvim_create_augroup("LspCodelens", {}),
|
-- group = vim.api.nvim_create_augroup("LspCodelens", {}),
|
||||||
callback = lsp.refresh_codelens,
|
-- callback = lsp.refresh_codelens,
|
||||||
},
|
-- },
|
||||||
},
|
-- },
|
||||||
["textDocument/formatting"] = {
|
["textDocument/formatting"] = {
|
||||||
event = "BufWritePost",
|
event = "BufWritePost",
|
||||||
opts = {
|
opts = {
|
||||||
|
|
|
||||||
|
|
@ -39,10 +39,10 @@ return {
|
||||||
["textDocument/typeDefinition"] = {
|
["textDocument/typeDefinition"] = {
|
||||||
["gT"] = { lsp.type_definition, "Go to type definition" },
|
["gT"] = { lsp.type_definition, "Go to type definition" },
|
||||||
},
|
},
|
||||||
["textDocument/codeLens"] = {
|
-- ["textDocument/codeLens"] = {
|
||||||
["<leader>ll"] = { lsp.run_codelens, fmt("Run", "Run codelens") },
|
-- ["<leader>ll"] = { lsp.run_codelens, fmt("Run", "Run codelens") },
|
||||||
["<leader>lL"] = { lsp.refresh_codelens, fmt("Restart", "Refresh codelens") },
|
-- ["<leader>lL"] = { lsp.refresh_codelens, fmt("Restart", "Refresh codelens") },
|
||||||
},
|
-- },
|
||||||
["workspace/symbol"] = {
|
["workspace/symbol"] = {
|
||||||
["<leader>ls"] = { lsp.symbols, fmt("Symbol", "Workspace symbols") },
|
["<leader>ls"] = { lsp.symbols, fmt("Symbol", "Workspace symbols") },
|
||||||
},
|
},
|
||||||
|
|
|
||||||
|
|
@ -92,8 +92,6 @@ return {
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|
||||||
local catppuccin = require("catppuccin")
|
|
||||||
|
|
||||||
return {
|
return {
|
||||||
snippet = {
|
snippet = {
|
||||||
expand = function(args)
|
expand = function(args)
|
||||||
|
|
@ -113,7 +111,6 @@ return {
|
||||||
sources = cmp.config.sources({
|
sources = cmp.config.sources({
|
||||||
{ name = "nvim_lsp", priority = 1000 },
|
{ name = "nvim_lsp", priority = 1000 },
|
||||||
{ name = "crates", priority = 1000 },
|
{ name = "crates", priority = 1000 },
|
||||||
{ name = "vim-dadbod-completion", priority = 1000 },
|
|
||||||
{ name = "luasnip", priority = 750 },
|
{ name = "luasnip", priority = 750 },
|
||||||
{ name = "buffer", priority = 500 },
|
{ name = "buffer", priority = 500 },
|
||||||
{ name = "path", priority = 250 },
|
{ name = "path", priority = 250 },
|
||||||
|
|
|
||||||
|
|
@ -16,5 +16,14 @@ return {
|
||||||
config = function()
|
config = function()
|
||||||
vim.g.db_ui_notification_width = 1
|
vim.g.db_ui_notification_width = 1
|
||||||
vim.g.db_ui_debug = 1
|
vim.g.db_ui_debug = 1
|
||||||
|
|
||||||
|
local cmp = require("cmp")
|
||||||
|
|
||||||
|
cmp.setup.filetype({ "sql" }, {
|
||||||
|
sources = {
|
||||||
|
{ name = "vim-dadbod-completion" },
|
||||||
|
{ name = "buffer" },
|
||||||
|
},
|
||||||
|
})
|
||||||
end,
|
end,
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue