Add python and odin lsp and another theme as comment

This commit is contained in:
Pablu23
2024-06-26 14:32:57 +02:00
parent 3bed9e8ccb
commit 5974388201
6 changed files with 49 additions and 21 deletions

View File

@@ -14,3 +14,4 @@ vim.opt.rtp:prepend(lazypath)
require("vim-options")
require("lazy").setup("plugins")

View File

@@ -17,6 +17,7 @@
"nvim-lspconfig": { "branch": "master", "commit": "a284b14b3a9c4851f900286cd7eb68e3a8f90b1c" },
"nvim-treesitter": { "branch": "master", "commit": "00a8cfd562dc805eb4d732fbca35e23640dbf7c8" },
"nvim-web-devicons": { "branch": "master", "commit": "e37bb1feee9e7320c76050a55443fa843b4b6f83" },
"oxocarbon.nvim": { "branch": "main", "commit": "c5846d10cbe4131cc5e32c6d00beaf59cb60f6a2" },
"plenary.nvim": { "branch": "master", "commit": "08e301982b9a057110ede7a735dd1b5285eb341f" },
"telescope-ui-select.nvim": { "branch": "master", "commit": "6e51d7da30bd139a6950adf2a47fda6df9fa06d2" },
"telescope.nvim": { "branch": "master", "commit": "6312868392331c9c0f22725041f1ec2bef57c751" }

View File

@@ -1,9 +1,10 @@
return {
return
{
"catppuccin/nvim",
name = "catppuccin",
priority = 1000,
lazy = false,
config= function()
config = function()
require("catppuccin").setup({
transparent_background = true,
})
@@ -11,3 +12,13 @@ return {
vim.cmd.colorscheme "catppuccin"
end
}
-- {
-- "nyoom-engineering/oxocarbon.nvim",
-- config = function()
-- vim.opt.background = "dark"
-- vim.cmd.colorscheme "oxocarbon"
--
-- -- vim.api.nvim_set_hl(0, "Normal", { bg = "none" })
-- -- vim.api.nvim_set_hl(0, "NormalFloat", { bg = "none" })
-- end
-- }

View File

@@ -15,7 +15,8 @@ return {
"rust_analyzer",
"html",
"zls",
"biome",
"pyright",
"ols",
},
})
end,
@@ -50,7 +51,11 @@ return {
capabilities = capabilities,
handlers = handlers,
})
lspconfig.biome.setup({
lspconfig.pyright.setup({
capabilities = capabilities,
handlers = handlers,
})
lspconfig.ols.setup({
capabilities = capabilities,
handlers = handlers,
})

View File

@@ -6,7 +6,6 @@ return {
sources = {
null_ls.builtins.formatting.stylua,
null_ls.builtins.formatting.gofmt,
null_ls.builtins.formatting.biome,
},
})
vim.keymap.set("n", "<leader>gf", vim.lsp.buf.format, {})

View File

@@ -4,9 +4,20 @@ return {
config = function()
local config = require("nvim-treesitter.configs")
config.setup({
ensure_installed = {"lua", "go", "zig", "markdown", "json", "yaml"},
highlight = {enable = true},
indent = {enable = true},
ensure_installed = { "lua", "go", "zig", "markdown", "json", "yaml", "javascript", "typescript", "bash", "python" },
highlight = { enable = true },
indent = { enable = true },
})
local treesitter_parser_config = require("nvim-treesitter.parsers").get_parser_configs()
treesitter_parser_config.templ = {
install_info = {
url = "https://github.com/vrischmann/tree-sitter-templ.git",
files = { "src/parser.c", "src/scanner.c" },
branch = "master",
},
}
vim.treesitter.language.register("templ", "templ")
end
}