584 current 2024-05-14 14:32:25 24.05.20240512.2057814 6.8.6-zen1 *

This commit is contained in:
zackartz 2024-05-14 14:32:28 -04:00
parent 1a9bd617ba
commit 8f25c2fc0b
No known key found for this signature in database
GPG key ID: 5B53E53A9A514DBA
6 changed files with 31 additions and 22 deletions

View file

@ -44,14 +44,15 @@
services.fstrim.enable = true;
services.mullvad-vpn.enable = true;
systemd.services."mullvad-daemon".postStart = let
mullvad = config.services.mullvad-vpn.package;
in ''
while ! ${mullvad}/bin/mullvad status >/dev/null; do sleep 1; done
${mullvad}/bin/mullvad auto-connect set on
${mullvad}/bin/mullvad tunnel set ipv6 on
${mullvad}/bin/mullvad connect
'';
# disable autoconnect for now
# systemd.services."mullvad-daemon".postStart = let
# mullvad = config.services.mullvad-vpn.package;
# in ''
# while ! ${mullvad}/bin/mullvad status >/dev/null; do sleep 1; done
# ${mullvad}/bin/mullvad auto-connect set on
# ${mullvad}/bin/mullvad tunnel set ipv6 on
# ${mullvad}/bin/mullvad connect
# '';
services.transmission = {
enable = true;

View file

@ -34,6 +34,8 @@ return {
-- Neotree
[l("e")] = { cmd("Neotree toggle"), fmt("FileTree", "Toggle Neotree") },
[l("ng")] = { cmd("Neogit"), fmt("Git", "Open Neogit") },
-- move.nvim
["<A-j>"] = { cmd("MoveLine(1)"), "Move line down" },
["<A-k>"] = { cmd("MoveLine(-1)"), "Move line up" },

View file

@ -1,13 +1,13 @@
local lsp = require("lsp.functions")
return {
["textDocument/codeLens"] = {
event = { "BufEnter", "InsertLeave" },
opts = {
group = vim.api.nvim_create_augroup("LspCodelens", {}),
callback = lsp.refresh_codelens,
},
},
-- ["textDocument/codeLens"] = {
-- event = { "BufEnter", "InsertLeave" },
-- opts = {
-- group = vim.api.nvim_create_augroup("LspCodelens", {}),
-- callback = lsp.refresh_codelens,
-- },
-- },
["textDocument/formatting"] = {
event = "BufWritePost",
opts = {

View file

@ -39,10 +39,10 @@ return {
["textDocument/typeDefinition"] = {
["gT"] = { lsp.type_definition, "Go to type definition" },
},
["textDocument/codeLens"] = {
["<leader>ll"] = { lsp.run_codelens, fmt("Run", "Run codelens") },
["<leader>lL"] = { lsp.refresh_codelens, fmt("Restart", "Refresh codelens") },
},
-- ["textDocument/codeLens"] = {
-- ["<leader>ll"] = { lsp.run_codelens, fmt("Run", "Run codelens") },
-- ["<leader>lL"] = { lsp.refresh_codelens, fmt("Restart", "Refresh codelens") },
-- },
["workspace/symbol"] = {
["<leader>ls"] = { lsp.symbols, fmt("Symbol", "Workspace symbols") },
},

View file

@ -92,8 +92,6 @@ return {
return
end
local catppuccin = require("catppuccin")
return {
snippet = {
expand = function(args)
@ -113,7 +111,6 @@ return {
sources = cmp.config.sources({
{ name = "nvim_lsp", priority = 1000 },
{ name = "crates", priority = 1000 },
{ name = "vim-dadbod-completion", priority = 1000 },
{ name = "luasnip", priority = 750 },
{ name = "buffer", priority = 500 },
{ name = "path", priority = 250 },

View file

@ -16,5 +16,14 @@ return {
config = function()
vim.g.db_ui_notification_width = 1
vim.g.db_ui_debug = 1
local cmp = require("cmp")
cmp.setup.filetype({ "sql" }, {
sources = {
{ name = "vim-dadbod-completion" },
{ name = "buffer" },
},
})
end,
}