Compare commits
2 Commits
ff0a0e2701
...
6f76a9cb4c
Author | SHA1 | Date |
---|---|---|
sudo pacman -Syu | 6f76a9cb4c | |
sudo pacman -Syu | 1a1b2d2ac8 |
|
@ -23,6 +23,7 @@ https://kbd.news/rss.php
|
||||||
https://go.dev/blog/feed.atom
|
https://go.dev/blog/feed.atom
|
||||||
https://lwn.net/headlines/rss
|
https://lwn.net/headlines/rss
|
||||||
https://github.blog/tag/git/atom
|
https://github.blog/tag/git/atom
|
||||||
|
https://golangweekly.com/rss/
|
||||||
https://lobste.rs/t/cryptography,design,go,linux,mac.rss "~lobste.rs"
|
https://lobste.rs/t/cryptography,design,go,linux,mac.rss "~lobste.rs"
|
||||||
|
|
||||||
http://antirez.com/rss
|
http://antirez.com/rss
|
||||||
|
@ -38,4 +39,3 @@ https://michael.stapelberg.ch/feed.xml
|
||||||
https://mitchellh.com/feed.xml
|
https://mitchellh.com/feed.xml
|
||||||
https://research.swtch.com/feed.atom
|
https://research.swtch.com/feed.atom
|
||||||
https://stephango.com/feed.xml
|
https://stephango.com/feed.xml
|
||||||
https://xeiaso.net/blog.rss
|
|
||||||
|
|
|
@ -170,6 +170,9 @@ require("lazy").setup({
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
end,
|
end,
|
||||||
|
integrations = {
|
||||||
|
treesitter_context = false,
|
||||||
|
},
|
||||||
})
|
})
|
||||||
|
|
||||||
vim.cmd("colorscheme catppuccin")
|
vim.cmd("colorscheme catppuccin")
|
||||||
|
@ -457,6 +460,52 @@ require("lazy").setup({
|
||||||
end,
|
end,
|
||||||
},
|
},
|
||||||
|
|
||||||
|
-- https://github.com/nvim-treesitter/nvim-treesitter
|
||||||
|
{
|
||||||
|
"nvim-treesitter/nvim-treesitter",
|
||||||
|
build = {
|
||||||
|
":TSUpdate",
|
||||||
|
},
|
||||||
|
config = function()
|
||||||
|
require("nvim-treesitter.configs").setup({
|
||||||
|
ensure_installed = {
|
||||||
|
"bash",
|
||||||
|
"git_config",
|
||||||
|
"gitcommit",
|
||||||
|
"go",
|
||||||
|
"lua",
|
||||||
|
"markdown",
|
||||||
|
"markdown_inline",
|
||||||
|
"proto",
|
||||||
|
"python",
|
||||||
|
"vim",
|
||||||
|
"vimdoc",
|
||||||
|
},
|
||||||
|
highlight = {
|
||||||
|
enabled = true,
|
||||||
|
disable = function(lang, bufnr)
|
||||||
|
-- Skip big files with many lines
|
||||||
|
return vim.api.nvim_buf_line_count(bufnr) > 10000
|
||||||
|
end,
|
||||||
|
},
|
||||||
|
})
|
||||||
|
end,
|
||||||
|
},
|
||||||
|
|
||||||
|
-- https://github.com/nvim-treesitter/nvim-treesitter-context
|
||||||
|
{
|
||||||
|
"nvim-treesitter/nvim-treesitter-context",
|
||||||
|
dependencies = {
|
||||||
|
"nvim-treesitter/nvim-treesitter",
|
||||||
|
},
|
||||||
|
config = function()
|
||||||
|
require("treesitter-context").setup({
|
||||||
|
enable = true,
|
||||||
|
max_lines = 2,
|
||||||
|
})
|
||||||
|
end,
|
||||||
|
},
|
||||||
|
|
||||||
-- https://github.com/neovim/nvim-lspconfig
|
-- https://github.com/neovim/nvim-lspconfig
|
||||||
{
|
{
|
||||||
"neovim/nvim-lspconfig",
|
"neovim/nvim-lspconfig",
|
||||||
|
@ -481,8 +530,14 @@ require("lazy").setup({
|
||||||
-- https://github.com/golang/tools/blob/master/gopls/doc/settings.md
|
-- https://github.com/golang/tools/blob/master/gopls/doc/settings.md
|
||||||
-- https://github.com/golang/tools/blob/master/gopls/doc/inlayHints.md
|
-- https://github.com/golang/tools/blob/master/gopls/doc/inlayHints.md
|
||||||
-- https://github.com/neovim/nvim-lspconfig/blob/master/doc/server_configurations.md#gopls
|
-- https://github.com/neovim/nvim-lspconfig/blob/master/doc/server_configurations.md#gopls
|
||||||
|
-- https://github.com/neovim/nvim-lspconfig/issues/2542
|
||||||
lspconfig.gopls.setup({
|
lspconfig.gopls.setup({
|
||||||
capabilities = capabilities,
|
capabilities = capabilities,
|
||||||
|
on_init = function(client, initialization_result)
|
||||||
|
if client.server_capabilities then
|
||||||
|
client.server_capabilities.semanticTokensProvider = nil
|
||||||
|
end
|
||||||
|
end,
|
||||||
on_attach = function(client, bufnr)
|
on_attach = function(client, bufnr)
|
||||||
vim.lsp.inlay_hint.enable(true, { bufnr = bufnr })
|
vim.lsp.inlay_hint.enable(true, { bufnr = bufnr })
|
||||||
end,
|
end,
|
||||||
|
@ -498,12 +553,24 @@ require("lazy").setup({
|
||||||
-- Python
|
-- Python
|
||||||
-- https://github.com/astral-sh/ruff/blob/main/crates/ruff_server/docs/setup/NEOVIM.md
|
-- https://github.com/astral-sh/ruff/blob/main/crates/ruff_server/docs/setup/NEOVIM.md
|
||||||
-- https://github.com/neovim/nvim-lspconfig/blob/master/doc/server_configurations.md#ruff
|
-- https://github.com/neovim/nvim-lspconfig/blob/master/doc/server_configurations.md#ruff
|
||||||
lspconfig.ruff.setup({})
|
lspconfig.ruff.setup({
|
||||||
|
on_init = function(client, initialization_result)
|
||||||
|
if client.server_capabilities then
|
||||||
|
client.server_capabilities.semanticTokensProvider = nil
|
||||||
|
end
|
||||||
|
end,
|
||||||
|
})
|
||||||
|
|
||||||
-- Markdown
|
-- Markdown
|
||||||
-- https://github.com/artempyanykh/marksman
|
-- https://github.com/artempyanykh/marksman
|
||||||
-- https://github.com/neovim/nvim-lspconfig/blob/master/doc/server_configurations.md#marksman
|
-- https://github.com/neovim/nvim-lspconfig/blob/master/doc/server_configurations.md#marksman
|
||||||
lspconfig.marksman.setup({})
|
lspconfig.marksman.setup({
|
||||||
|
on_init = function(client, initialization_result)
|
||||||
|
if client.server_capabilities then
|
||||||
|
client.server_capabilities.semanticTokensProvider = nil
|
||||||
|
end
|
||||||
|
end,
|
||||||
|
})
|
||||||
|
|
||||||
-- General
|
-- General
|
||||||
vim.keymap.set("n", "<Space>e", vim.diagnostic.open_float)
|
vim.keymap.set("n", "<Space>e", vim.diagnostic.open_float)
|
||||||
|
|
Loading…
Reference in New Issue