feat: Update nvim
This commit is contained in:
@@ -12,3 +12,8 @@
|
||||
gpgsign = true
|
||||
[tag]
|
||||
gpgsign = true
|
||||
[filter "lfs"]
|
||||
process = git-lfs filter-process
|
||||
required = true
|
||||
clean = git-lfs clean -- %f
|
||||
smudge = git-lfs smudge -- %f
|
||||
|
@@ -5,5 +5,11 @@ M.plugins = "custom.plugins"
|
||||
M.mappings = require "custom.configs.mappings"
|
||||
vim.opt.spelllang = 'en_gb'
|
||||
vim.opt.spell = true
|
||||
vim.keymap.set("n", "]g", function ()
|
||||
vim.diagnostic.goto_next()
|
||||
end)
|
||||
vim.keymap.set("n", "[g", function ()
|
||||
vim.diagnostic.goto_prev()
|
||||
end)
|
||||
|
||||
return M
|
||||
|
@@ -29,8 +29,32 @@ lspconfig.tsserver.setup{
|
||||
}
|
||||
}
|
||||
|
||||
lspconfig.tailwindcss.setup({
|
||||
on_attach = on_attach,
|
||||
capabilities = capabilities,
|
||||
})
|
||||
|
||||
lspconfig.pyright.setup({
|
||||
on_attach = on_attach,
|
||||
capabilities = capabilities,
|
||||
filetypes= {"python"},
|
||||
})
|
||||
|
||||
lspconfig.eslint.setup({
|
||||
on_attach = on_attach,
|
||||
capabilities = capabilities,
|
||||
})
|
||||
|
||||
lspconfig.golangcilsp = {
|
||||
default_config = {
|
||||
cmd = {'golangci-lint-langserver'},
|
||||
root_dir = lspconfig.util.root_pattern('.git', 'go.mod'),
|
||||
init_options = {
|
||||
command = { "golangci-lint", "run", "--out-format", "json", "--issues-exit-code=1" };
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
lspconfig.golangci_lint_ls.setup {
|
||||
filetypes = {'go','gomod'}
|
||||
}
|
||||
|
@@ -17,6 +17,7 @@ M.dap = {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
M.dap_go = {
|
||||
plugin=true,
|
||||
n = {
|
||||
@@ -34,6 +35,7 @@ M.dap_go = {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
M.dapui = {
|
||||
n = {
|
||||
["<leader>dui"] = {
|
||||
@@ -45,4 +47,15 @@ M.dapui = {
|
||||
}
|
||||
}
|
||||
|
||||
M.lsp = {
|
||||
n = {
|
||||
["<leader>ww"] = {
|
||||
function()
|
||||
vim.diagnostic.open_float()
|
||||
end,
|
||||
"What's wrong with this line?"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return M
|
||||
|
@@ -15,6 +15,8 @@ local plugins = {
|
||||
"debugpy",
|
||||
"rust-analyzer",
|
||||
"codelldb",
|
||||
"tailwindcss-language-server",
|
||||
"golangci-lint-langserver",
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -48,7 +50,7 @@ local plugins = {
|
||||
"mfussenegger/nvim-dap-python",
|
||||
ft = "python",
|
||||
dependencies = "mfussenegger/nvim-dap",
|
||||
config = function (_, opts)
|
||||
config = function (_, _)
|
||||
local path = "~/.local/share/nvim/mason/packages/debugpy/venv/bin/python"
|
||||
require("dap-python").setup(path)
|
||||
end
|
||||
|
@@ -1,2 +1,7 @@
|
||||
Host gitea
|
||||
IdentityFile /home/matt/.ssh/lightsail_rsa
|
||||
User admin
|
||||
Host minecraft
|
||||
IdentityFile /home/matt/.ssh/minecraft_private.pem
|
||||
Host *
|
||||
IdentityFile /home/matt/.ssh/id_ed25519_sk_desk
|
||||
|
@@ -32,7 +32,8 @@ set $menu rofi -show drun
|
||||
#
|
||||
# Default wallpaper (more resolutions are available in /usr/share/backgrounds/sway/)
|
||||
set $background /home/matt/Photos/wallpaper.png
|
||||
output * bg $background fill
|
||||
output DP-1 bg /home/matt/Photos/Wallpapers/left.jpg fill
|
||||
output DP-3 bg /home/matt/Photos/Wallpapers/right.jpg fill
|
||||
#
|
||||
# Example configuration:
|
||||
#
|
||||
|
Reference in New Issue
Block a user