This commit is contained in:
arc
2025-03-20 12:22:40 -06:00
parent 6cba1e35d5
commit 77bf610632
4 changed files with 45 additions and 33 deletions

View File

@ -19,7 +19,8 @@ vim.opt.foldlevelstart = 99
-- vim.opt.completeopt = 'menuone,noinsert,noselect'
-- not setting updatedtime because I use K to manually trigger hover effects
-- and lowering it also changes how frequently files are written to swap.
-- vim.opt.updatetime = 300
-- Uncommented to see if it'll make tooltips pop up automatically
vim.opt.updatetime = 300
-- if key combos seem to be "lagging"
-- http://stackoverflow.com/questions/2158516/delay-before-o-opens-a-new-line
-- vim.opt.timeoutlen = 300
@ -74,6 +75,15 @@ vim.api.nvim_create_autocmd('Filetype', { pattern = 'rust', command = 'set color
-- also, show tabs nicer
vim.opt.listchars = 'tab:^ ,nbsp:¬,extends:»,precedes:«,trail:•'
-- Arc, March 20, 2025
-- Setting the filetype for Verilog
vim.api.nvim_create_autocmd(
{"BufNewFile", "BufRead"}, {
pattern = {"*.v"},
command = "set filetype=verilog",
}
)
-------------------------------------------------------------------------------
--
-- hotkeys
@ -396,27 +406,29 @@ require("lazy").setup({
local lspconfig = require('lspconfig')
-- Rust
lspconfig.rust_analyzer.setup {
-- Server-specific settings. See `:help lspconfig-setup`
settings = {
["rust-analyzer"] = {
cargo = {
allFeatures = true,
},
imports = {
group = {
enable = false,
},
},
completion = {
postfix = {
-- Commened out to see if I like it more (arc) - 2024-10-03
-- enable = false,
},
},
},
},
}
-- Commented out to see if we could stop rust-analyzer from crashing (arc) - 2025-02-26
lspconfig.rust_analyzer.setup {}
-- lspconfig.rust_analyzer.setup {
-- -- Server-specific settings. See `:help lspconfig-setup`
-- settings = {
-- ["rust-analyzer"] = {
-- cargo = {
-- allFeatures = true,
-- },
-- imports = {
-- group = {
-- enable = false,
-- },
-- },
-- completion = {
-- postfix = {
-- -- Commened out to see if I like it more (arc) - 2024-10-03
-- -- enable = false,
-- },
-- },
-- },
-- },
-- }
-- C
lspconfig.clangd.setup {}