feat: automatic treesitter highlighting, haskell-language-server, treesitter comment italics
This commit is contained in:
@@ -36,6 +36,10 @@ vim.pack.add({
|
|||||||
"https://github.com/nvim-telescope/telescope.nvim",
|
"https://github.com/nvim-telescope/telescope.nvim",
|
||||||
})
|
})
|
||||||
|
|
||||||
|
vim.api.nvim_create_autocmd("BufEnter", {callback = function(args)
|
||||||
|
vim.cmd("TSBufEnable highlight")
|
||||||
|
end})
|
||||||
|
|
||||||
local telescope = require("telescope.builtin")
|
local telescope = require("telescope.builtin")
|
||||||
|
|
||||||
vim.keymap.set("n", "<leader>b", telescope.buffers, {})
|
vim.keymap.set("n", "<leader>b", telescope.buffers, {})
|
||||||
@@ -104,15 +108,15 @@ end
|
|||||||
|
|
||||||
vim.lsp.config("clangd", {cmd = {"clangd"}, filetypes = {"c", "cpp"}})
|
vim.lsp.config("clangd", {cmd = {"clangd"}, filetypes = {"c", "cpp"}})
|
||||||
vim.lsp.enable("clangd")
|
vim.lsp.enable("clangd")
|
||||||
vim.lsp.config("hls", { cmd = {"hls"}, filetypes = {"hs"}})
|
vim.lsp.config("haskell-language-server", { cmd = {"haskell-language-server-wrapper", "--lsp"}, filetypes = {"haskell"}})
|
||||||
vim.lsp.enable("hls")
|
vim.lsp.enable("haskell-language-server")
|
||||||
vim.lsp.config("lua_ls", { cmd = {"lua-language-server"}, filetypes = {"lua"}})
|
vim.lsp.config("lua_ls", { cmd = {"lua-language-server"}, filetypes = {"lua"}})
|
||||||
vim.lsp.enable("lua_ls")
|
vim.lsp.enable("lua_ls")
|
||||||
vim.lsp.config("nil_ls", { cmd = {"nil"}, filetypes = {"nix"}})
|
vim.lsp.config("nil_ls", { cmd = {"nil"}, filetypes = {"nix"}})
|
||||||
vim.lsp.enable("nil_ls")
|
vim.lsp.enable("nil_ls")
|
||||||
vim.lsp.config("nixd", { cmd = {"nixd"}, filetypes = {"nix"}})
|
vim.lsp.config("nixd", { cmd = {"nixd"}, filetypes = {"nix"}})
|
||||||
vim.lsp.enable("nixd")
|
vim.lsp.enable("nixd")
|
||||||
vim.lsp.config("pyright", {cmd = {"pyright"}, filetypes = {"py"}})
|
vim.lsp.config("pyright", {cmd = {"pyright"}, filetypes = {"python"}})
|
||||||
vim.lsp.enable("pyright")
|
vim.lsp.enable("pyright")
|
||||||
vim.lsp.config("zls", {cmd = {"zls"}, filetypes = {"zig"}})
|
vim.lsp.config("zls", {cmd = {"zls"}, filetypes = {"zig"}})
|
||||||
vim.lsp.enable("zls")
|
vim.lsp.enable("zls")
|
||||||
@@ -258,6 +262,7 @@ local groups = {
|
|||||||
WildMenu = { fg = colors.black, bg = colors.white },
|
WildMenu = { fg = colors.black, bg = colors.white },
|
||||||
|
|
||||||
-- TreeSitter
|
-- TreeSitter
|
||||||
|
["@comment"] = { fg = colors.comment, italic = true },
|
||||||
["@error"] = { fg = colors.red },
|
["@error"] = { fg = colors.red },
|
||||||
["@punctuation.delimiter"] = { fg = colors.fg },
|
["@punctuation.delimiter"] = { fg = colors.fg },
|
||||||
["@punctuation.bracket"] = { fg = colors.fg },
|
["@punctuation.bracket"] = { fg = colors.fg },
|
||||||
|
|||||||
Reference in New Issue
Block a user