4 Commits

Author SHA1 Message Date
nichkara
ead1e9baa8 Makefile snippet for gccvarset to create clangd project file
Some checks failed
Test Neovim config on push / build (ubuntu-20.04) (push) Failing after 32s
2025-10-12 10:06:50 +02:00
nichkara
bfc3c57d19 Migration of lspconfig to vim.lsp
Some checks failed
Test Neovim config on push / build (ubuntu-20.04) (push) Failing after 39s
2025-10-12 10:03:04 +02:00
nichkara
d55b376ba8 Show intendation
Some checks failed
Test Neovim config on push / build (ubuntu-20.04) (push) Failing after 31s
2025-09-23 07:35:38 +02:00
nichkara
f96b560ca7 Remove ts-rainbow as it is deprecated
Some checks failed
Test Neovim config on push / build (ubuntu-20.04) (push) Failing after 35s
2025-09-23 07:28:44 +02:00
6 changed files with 44 additions and 44 deletions

View File

@@ -0,0 +1,7 @@
snippet copy_1_2_w3 "Copy current cell modifying cells +1,+2"
Copy (from) (to) (with): >[-]>[-]<<[->+>+<<]>>[-<<+>>]<<
endsnippet
snippet add_1_2 "Add from 1 to 2"
Add (from) (to): [->+<]>
endsnippet

View File

@@ -75,7 +75,18 @@ if t[19] == "y":
t[19] = "Created!"
if t[20] == "y":
system(f"git init > /dev/null")
t[20] = "Initialized repository!"`
t[20] = "Initialized repository!"``!p
from os import system
if "cl" in t[2].split(' ') and t[19] == "y":
with open(".clangd", "w") as w:
config = f"""
CompileFlags:
Add: [{t[8].split(' ').join(', ')}]
Remove: []
Compiler: {t[3]}
""" w.write(config)
`
$0
endsnippet

View File

@@ -24,6 +24,7 @@ local fixers = {
python = { "yapf" },
pascal = { "ptop" },
haskell = { "fourmolu" },
rust = { "rustfmt" },
}
vim.g.ale_linters = linters

View File

@@ -15,41 +15,14 @@ require("mason-lspconfig").setup({
},
})
-- require("mason-lspconfig").setup_handlers({
-- function(asm_lsp)
-- require("lspconfig")[asm_lsp].setup({})
-- end,
-- function(clangd)
-- require("lspconfig")[clangd].setup({})
-- end,
-- function(lua_ls)
-- require("lspconfig")[lua_ls].setup({})
-- end,
-- function(hls)
-- require("lspconfig")[hls].setup({})
-- end,
-- function(rust_analyzer)
-- require("lspconfig")[rust_analyzer].setup({})
-- end,
-- function(vhdl_ls)
-- require("lspconfig")[vhdl_ls].setup({})
-- end,
-- function(verible)
-- require("lspconfig")[verible].setup({})
-- end,
-- function(vimls)
-- require("lspconfig")[vimls].setup({})
-- end,
-- function(texlab)
-- require("lspconfig")[texlab].setup({})
-- end,
-- function(als)
-- require("lspconfig")[als].setup({})
-- end,
-- })
vim.lsp.enable("verible")
vim.lsp.config("verible", { cmd = { "verible-verilog-ls", "--rules_config_search" } })
require("lspconfig").verible.setup({
cmd = { "verible-verilog-ls", "--rules_config_search" },
vim.lsp.enable("clangd")
vim.lsp.config("clangd", {
cmd = { "clangd" },
root_markers = { ".clangd" },
filetypes = { "c", "cpp" },
})
-- @name file_exists
@@ -81,10 +54,5 @@ local function get_config_file()
end
end
require("lspconfig").als.setup({
settings = {
ada = {
projectFile = get_config_file(),
},
},
})
vim.lsp.enable("als")
vim.lsp.config("als", { projectFile = get_config_file() })

View File

@@ -34,7 +34,6 @@ return {
"nvim-tree/nvim-web-devicons",
{ "romgrk/barbar.nvim", wants = "nvim-web-devicons" },
"mhinz/vim-startify",
"p00f/nvim-ts-rainbow",
{
"nvim-treesitter/nvim-treesitter",
build = ":TSUpdate",
@@ -67,7 +66,13 @@ return {
end,
ft = { "markdown" },
},
{
"lukas-reineke/indent-blankline.nvim",
main = "ibl",
---@module "ibl"
---@type ibl.config
opts = {},
},
-- Themes
"folke/tokyonight.nvim",
"patstockwell/vim-monokai-tasty",
@@ -102,6 +107,7 @@ return {
"mhartington/formatter.nvim",
{ "TamaMcGlinn/nvim-lspconfig-ada" },
"sainnhe/sonokai",
"veryl-lang/veryl.vim",
-- Plugins to test
"https://git.nickr.eu/yannickreiss/nvim-macrotool.git",

View File

@@ -103,3 +103,10 @@ vim.api.nvim_create_autocmd({ "BufLeave" }, {
pattern = { "*.nix" },
callback = close_nix_interpreter,
})
vim.filetype.add({
extension = {
bf = "brainfuck",
},
})