Compare commits

...

2 commits

Author SHA1 Message Date
2538e9b246 fix: no-clown-fiesta not coloring some rust lsp types 2026-04-16 14:42:09 -04:00
agryphus
ec37d03c65 Add: format keybind 2026-02-04 12:20:42 -05:00
2 changed files with 13 additions and 7 deletions

9
after/ftplugin/rust.lua Normal file
View file

@ -0,0 +1,9 @@
vim.api.nvim_create_autocmd("LspAttach", {
buffer = 0,
callback = function()
vim.defer_fn(function()
vim.api.nvim_set_hl(0, "@lsp.type.namespace.rust", { link = "Include" })
vim.api.nvim_set_hl(0, "@lsp.type.macro.rust", { link = "Macro" })
end, 50)
end,
})

View file

@ -1,13 +1,6 @@
-- LANGUAGE SERVERS
local lsp_zero = require('lsp-zero')
local lsp_capabilities = require("cmp_nvim_lsp").default_capabilities()
lsp_zero.on_attach(function(client, bufnr)
-- see :help lsp-zero-keybindings
-- to learn the available actions
lsp_zero.default_keymaps({buffer = bufnr})
end)
-- LUA
vim.lsp.config('lua_ls', {
settings = {
@ -60,6 +53,10 @@ vim.keymap.set("n", "<leader>gf", ":GoFmt<CR>",
{ noremap = true, silent = true, desc = "Go Format" }
)
vim.keymap.set("n", "<leader>ff", "<cmd>lua vim.lsp.buf.format()<CR>",
{ desc = "Format Code" }
)
-- AUTOCOMPLETION
local cmp = require('cmp')