feat: Update nvim
This commit is contained in:
@@ -12,3 +12,8 @@
|
|||||||
gpgsign = true
|
gpgsign = true
|
||||||
[tag]
|
[tag]
|
||||||
gpgsign = true
|
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"
|
M.mappings = require "custom.configs.mappings"
|
||||||
vim.opt.spelllang = 'en_gb'
|
vim.opt.spelllang = 'en_gb'
|
||||||
vim.opt.spell = true
|
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
|
return M
|
||||||
|
@@ -29,8 +29,32 @@ lspconfig.tsserver.setup{
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
lspconfig.tailwindcss.setup({
|
||||||
|
on_attach = on_attach,
|
||||||
|
capabilities = capabilities,
|
||||||
|
})
|
||||||
|
|
||||||
lspconfig.pyright.setup({
|
lspconfig.pyright.setup({
|
||||||
on_attach = on_attach,
|
on_attach = on_attach,
|
||||||
capabilities = capabilities,
|
capabilities = capabilities,
|
||||||
filetypes= {"python"},
|
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 = {
|
M.dap_go = {
|
||||||
plugin=true,
|
plugin=true,
|
||||||
n = {
|
n = {
|
||||||
@@ -34,6 +35,7 @@ M.dap_go = {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
M.dapui = {
|
M.dapui = {
|
||||||
n = {
|
n = {
|
||||||
["<leader>dui"] = {
|
["<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
|
return M
|
||||||
|
@@ -15,6 +15,8 @@ local plugins = {
|
|||||||
"debugpy",
|
"debugpy",
|
||||||
"rust-analyzer",
|
"rust-analyzer",
|
||||||
"codelldb",
|
"codelldb",
|
||||||
|
"tailwindcss-language-server",
|
||||||
|
"golangci-lint-langserver",
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -48,7 +50,7 @@ local plugins = {
|
|||||||
"mfussenegger/nvim-dap-python",
|
"mfussenegger/nvim-dap-python",
|
||||||
ft = "python",
|
ft = "python",
|
||||||
dependencies = "mfussenegger/nvim-dap",
|
dependencies = "mfussenegger/nvim-dap",
|
||||||
config = function (_, opts)
|
config = function (_, _)
|
||||||
local path = "~/.local/share/nvim/mason/packages/debugpy/venv/bin/python"
|
local path = "~/.local/share/nvim/mason/packages/debugpy/venv/bin/python"
|
||||||
require("dap-python").setup(path)
|
require("dap-python").setup(path)
|
||||||
end
|
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 *
|
Host *
|
||||||
IdentityFile /home/matt/.ssh/id_ed25519_sk_desk
|
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/)
|
# Default wallpaper (more resolutions are available in /usr/share/backgrounds/sway/)
|
||||||
set $background /home/matt/Photos/wallpaper.png
|
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:
|
# Example configuration:
|
||||||
#
|
#
|
||||||
|
Reference in New Issue
Block a user