Compare commits
4 Commits
master
...
ead1e9baa8
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
ead1e9baa8 | ||
|
|
bfc3c57d19 | ||
|
|
d55b376ba8 | ||
|
|
f96b560ca7 |
7
UltiSnips/brainfuck.snippets
Normal file
7
UltiSnips/brainfuck.snippets
Normal 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
|
||||||
@@ -75,7 +75,18 @@ if t[19] == "y":
|
|||||||
t[19] = "Created!"
|
t[19] = "Created!"
|
||||||
if t[20] == "y":
|
if t[20] == "y":
|
||||||
system(f"git init > /dev/null")
|
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
|
$0
|
||||||
endsnippet
|
endsnippet
|
||||||
|
|
||||||
|
|||||||
@@ -24,6 +24,7 @@ local fixers = {
|
|||||||
python = { "yapf" },
|
python = { "yapf" },
|
||||||
pascal = { "ptop" },
|
pascal = { "ptop" },
|
||||||
haskell = { "fourmolu" },
|
haskell = { "fourmolu" },
|
||||||
|
rust = { "rustfmt" },
|
||||||
}
|
}
|
||||||
|
|
||||||
vim.g.ale_linters = linters
|
vim.g.ale_linters = linters
|
||||||
|
|||||||
@@ -15,41 +15,14 @@ require("mason-lspconfig").setup({
|
|||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|
||||||
-- require("mason-lspconfig").setup_handlers({
|
vim.lsp.enable("verible")
|
||||||
-- function(asm_lsp)
|
vim.lsp.config("verible", { cmd = { "verible-verilog-ls", "--rules_config_search" } })
|
||||||
-- 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,
|
|
||||||
-- })
|
|
||||||
|
|
||||||
require("lspconfig").verible.setup({
|
vim.lsp.enable("clangd")
|
||||||
cmd = { "verible-verilog-ls", "--rules_config_search" },
|
vim.lsp.config("clangd", {
|
||||||
|
cmd = { "clangd" },
|
||||||
|
root_markers = { ".clangd" },
|
||||||
|
filetypes = { "c", "cpp" },
|
||||||
})
|
})
|
||||||
|
|
||||||
-- @name file_exists
|
-- @name file_exists
|
||||||
@@ -81,10 +54,5 @@ local function get_config_file()
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
require("lspconfig").als.setup({
|
vim.lsp.enable("als")
|
||||||
settings = {
|
vim.lsp.config("als", { projectFile = get_config_file() })
|
||||||
ada = {
|
|
||||||
projectFile = get_config_file(),
|
|
||||||
},
|
|
||||||
},
|
|
||||||
})
|
|
||||||
|
|||||||
@@ -34,7 +34,6 @@ return {
|
|||||||
"nvim-tree/nvim-web-devicons",
|
"nvim-tree/nvim-web-devicons",
|
||||||
{ "romgrk/barbar.nvim", wants = "nvim-web-devicons" },
|
{ "romgrk/barbar.nvim", wants = "nvim-web-devicons" },
|
||||||
"mhinz/vim-startify",
|
"mhinz/vim-startify",
|
||||||
"p00f/nvim-ts-rainbow",
|
|
||||||
{
|
{
|
||||||
"nvim-treesitter/nvim-treesitter",
|
"nvim-treesitter/nvim-treesitter",
|
||||||
build = ":TSUpdate",
|
build = ":TSUpdate",
|
||||||
@@ -67,7 +66,13 @@ return {
|
|||||||
end,
|
end,
|
||||||
ft = { "markdown" },
|
ft = { "markdown" },
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"lukas-reineke/indent-blankline.nvim",
|
||||||
|
main = "ibl",
|
||||||
|
---@module "ibl"
|
||||||
|
---@type ibl.config
|
||||||
|
opts = {},
|
||||||
|
},
|
||||||
-- Themes
|
-- Themes
|
||||||
"folke/tokyonight.nvim",
|
"folke/tokyonight.nvim",
|
||||||
"patstockwell/vim-monokai-tasty",
|
"patstockwell/vim-monokai-tasty",
|
||||||
@@ -102,6 +107,7 @@ return {
|
|||||||
"mhartington/formatter.nvim",
|
"mhartington/formatter.nvim",
|
||||||
{ "TamaMcGlinn/nvim-lspconfig-ada" },
|
{ "TamaMcGlinn/nvim-lspconfig-ada" },
|
||||||
"sainnhe/sonokai",
|
"sainnhe/sonokai",
|
||||||
|
"veryl-lang/veryl.vim",
|
||||||
|
|
||||||
-- Plugins to test
|
-- Plugins to test
|
||||||
"https://git.nickr.eu/yannickreiss/nvim-macrotool.git",
|
"https://git.nickr.eu/yannickreiss/nvim-macrotool.git",
|
||||||
|
|||||||
@@ -103,3 +103,10 @@ vim.api.nvim_create_autocmd({ "BufLeave" }, {
|
|||||||
pattern = { "*.nix" },
|
pattern = { "*.nix" },
|
||||||
callback = close_nix_interpreter,
|
callback = close_nix_interpreter,
|
||||||
})
|
})
|
||||||
|
|
||||||
|
vim.filetype.add({
|
||||||
|
extension = {
|
||||||
|
bf = "brainfuck",
|
||||||
|
},
|
||||||
|
})
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user