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!"
|
||||
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
|
||||
|
||||
|
||||
@@ -24,6 +24,7 @@ local fixers = {
|
||||
python = { "yapf" },
|
||||
pascal = { "ptop" },
|
||||
haskell = { "fourmolu" },
|
||||
rust = { "rustfmt" },
|
||||
}
|
||||
|
||||
vim.g.ale_linters = linters
|
||||
|
||||
@@ -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() })
|
||||
|
||||
@@ -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",
|
||||
|
||||
@@ -103,3 +103,10 @@ vim.api.nvim_create_autocmd({ "BufLeave" }, {
|
||||
pattern = { "*.nix" },
|
||||
callback = close_nix_interpreter,
|
||||
})
|
||||
|
||||
vim.filetype.add({
|
||||
extension = {
|
||||
bf = "brainfuck",
|
||||
},
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user