Compare commits
6 Commits
aa7025dfc7
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
380e2470b3 | ||
|
|
c4dab62f6e | ||
|
|
6024d4e803 | ||
|
|
5afb974b78 | ||
|
|
7b3f516848 | ||
|
|
19b0ce44bc |
@@ -38,7 +38,7 @@ endglobal
|
|||||||
snippet helloworld "Hello world example to test features" b
|
snippet helloworld "Hello world example to test features" b
|
||||||
-- `!p snip.rv = fn`
|
-- `!p snip.rv = fn`
|
||||||
-- Created on: `date`
|
-- Created on: `date`
|
||||||
-- Author(s): Yannick Reiss <yannick.reiss@nickr.eu>
|
-- Author(s): Nina Chloé Kassandra Reiß <nina.reiss@nickr.eu>
|
||||||
-- Content: Hello world example
|
-- Content: Hello world example
|
||||||
with Ada.Text_IO; use Ada.Text_IO;
|
with Ada.Text_IO; use Ada.Text_IO;
|
||||||
|
|
||||||
@@ -53,9 +53,7 @@ end $1;$0
|
|||||||
endsnippet
|
endsnippet
|
||||||
|
|
||||||
snippet docstring "Document String with most important information" b
|
snippet docstring "Document String with most important information" b
|
||||||
-- `!p snip.rv = fn`
|
-- Author(s): ${1:Nina Chloe Kassandra Reiss <nina.reiss@nickr.eu>}
|
||||||
-- Created on: `date`
|
|
||||||
-- Author(s): ${1:Yannick Reiß}
|
|
||||||
-- Description: ${2:`!p snip.rv = fn.split('.')[0]`}
|
-- Description: ${2:`!p snip.rv = fn.split('.')[0]`}
|
||||||
$0
|
$0
|
||||||
endsnippet
|
endsnippet
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ snippet dd "Date and Time" i
|
|||||||
endsnippet
|
endsnippet
|
||||||
|
|
||||||
snippet crednick "My private Credentials"
|
snippet crednick "My private Credentials"
|
||||||
Yannick Reiss <yannick.reiss@nickr.eu>
|
Nina Chloé Kassandra Reiß <nina.reiss@nickr.eu>
|
||||||
endsnippet
|
endsnippet
|
||||||
|
|
||||||
snippet credhsrm "Credentials HSRM"
|
snippet credhsrm "Credentials HSRM"
|
||||||
|
|||||||
@@ -21,7 +21,7 @@ endsnippet
|
|||||||
|
|
||||||
snippet template "Template for assembly program"
|
snippet template "Template for assembly program"
|
||||||
global ${1:_start} ; linker entry point
|
global ${1:_start} ; linker entry point
|
||||||
; Author: ${2: Yannick Reiß}
|
; Author: ${2:Nina Chloé Kassandra Reiß <nina.reiss@nickr.eu>}
|
||||||
; Date: `date`
|
; Date: `date`
|
||||||
; Description: ${3:Desciption}
|
; Description: ${3:Desciption}
|
||||||
|
|
||||||
|
|||||||
@@ -124,7 +124,7 @@ endsnippet
|
|||||||
snippet docstring "Meta Comment for Documenation" A
|
snippet docstring "Meta Comment for Documenation" A
|
||||||
/*
|
/*
|
||||||
* Filename: `!p snip.rv = fn`
|
* Filename: `!p snip.rv = fn`
|
||||||
* Author: ${1:Yannick Reiss}
|
* Author: ${1:Nina Chloé Kassandra Reiß <nina.reiss@nickr.eu>}
|
||||||
* Date: `date`
|
* Date: `date`
|
||||||
* Project: ${2:Project Name}
|
* Project: ${2:Project Name}
|
||||||
* Copyright: ${3:None}
|
* Copyright: ${3:None}
|
||||||
|
|||||||
@@ -11,7 +11,7 @@ snippet template "template for new program" A
|
|||||||
*-----------------------------------------------------------------
|
*-----------------------------------------------------------------
|
||||||
IDENTIFICATION DIVISION.
|
IDENTIFICATION DIVISION.
|
||||||
PROGRAM-ID. ${1:Title}.
|
PROGRAM-ID. ${1:Title}.
|
||||||
*AUTHOR. ${2:Yannick Reiß}.
|
*AUTHOR. ${2:Nina Chloé Kassandra Reiß <nina.reiss@nickr.eu>}.
|
||||||
*CONTENT. ${3:Beschreibung}.
|
*CONTENT. ${3:Beschreibung}.
|
||||||
*-----------------------------------------------------------------
|
*-----------------------------------------------------------------
|
||||||
|
|
||||||
|
|||||||
@@ -35,3 +35,7 @@ endsnippet
|
|||||||
snippet A "All"
|
snippet A "All"
|
||||||
∀
|
∀
|
||||||
endsnippet
|
endsnippet
|
||||||
|
|
||||||
|
snippet . "Dot"
|
||||||
|
·
|
||||||
|
endsnippet
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
snippet docstring "Document string" b
|
snippet docstring "Document string" b
|
||||||
-- Filename: `!p snip.rv = fn`
|
-- Filename: `!p snip.rv = fn`
|
||||||
-- Author: ${1:Yannick Reiß}
|
-- Author: ${1:Nina Chloé Kassandra Reiß <nina.reiss@nickr.eu>}
|
||||||
-- Copyright: ${2:MIT-License}
|
-- Copyright: ${2:MIT-License}
|
||||||
-- Description: ${3:Funny lua script}
|
-- Description: ${3:Funny lua script}
|
||||||
$0
|
$0
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
snippet helloworld "Hello world example" b
|
snippet helloworld "Hello world example" b
|
||||||
"""
|
"""
|
||||||
File: `!p snip.rv = fn`
|
File: `!p snip.rv = fn`
|
||||||
Author: Nicki
|
Author: Nina Chloé Kassandra Reiß <nina.reiss@nickr.eu>
|
||||||
Created on: `date`
|
Created on: `date`
|
||||||
Description: Hello world python example
|
Description: Hello world python example
|
||||||
"""
|
"""
|
||||||
@@ -14,7 +14,7 @@ endsnippet
|
|||||||
snippet docmodule "Documentation for modules"
|
snippet docmodule "Documentation for modules"
|
||||||
"""
|
"""
|
||||||
File: `!p snip.rv = fn`
|
File: `!p snip.rv = fn`
|
||||||
Author: ${1:Yannick Reiß}
|
Author: ${1:Nina Chloé Kassandra Reiß <nina.reiss@nickr.eu>}
|
||||||
Created on: `date`
|
Created on: `date`
|
||||||
Description: ${2:No further description}
|
Description: ${2:No further description}
|
||||||
"""
|
"""
|
||||||
|
|||||||
@@ -93,7 +93,7 @@ endsnippet
|
|||||||
|
|
||||||
snippet textemplate "include header" A
|
snippet textemplate "include header" A
|
||||||
\\input{~/latex/header.tex}
|
\\input{~/latex/header.tex}
|
||||||
\\header{${1:report/article}}{${2:Yannick Reiß}}{${3:Titel}}
|
\\header{${1:report/article}}{${2:Nina Chloé Kassandra Reiß <nina.reiss@nickr.eu>}}{${3:Titel}}
|
||||||
|
|
||||||
\\begin{document}
|
\\begin{document}
|
||||||
\\input{~/latex/init.tex}
|
\\input{~/latex/init.tex}
|
||||||
|
|||||||
13
UltiSnips/veryl.snippets
Normal file
13
UltiSnips/veryl.snippets
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
snippet module "Create a new module" b
|
||||||
|
${1:pub } module ${2:module_name} (
|
||||||
|
$3
|
||||||
|
) {
|
||||||
|
$0
|
||||||
|
}
|
||||||
|
endsnippet
|
||||||
|
|
||||||
|
snippet embed "Add embed"
|
||||||
|
embed (inline) sv{{{
|
||||||
|
$1
|
||||||
|
}}}$0
|
||||||
|
endsnippet
|
||||||
@@ -51,10 +51,6 @@ vim.api.nvim_create_autocmd({ "BufEnter" }, {
|
|||||||
-- @param
|
-- @param
|
||||||
-- @short Leave ada and reverse any changes to my editor defaults
|
-- @short Leave ada and reverse any changes to my editor defaults
|
||||||
local function leave_ada()
|
local function leave_ada()
|
||||||
vim.keymap.del("n", "<leader>cb", ":!gnatpp %<cr>")
|
|
||||||
vim.keymap.del("n", "pp", ":lua Close_Prove()<cr>")
|
|
||||||
vim.keymap.del("n", "<leader>pp", ":lua Prove()<cr>")
|
|
||||||
vim.keymap.del("n", "<leader>op", ":lua Run()<cr>")
|
|
||||||
vim.opt.tabstop = 4
|
vim.opt.tabstop = 4
|
||||||
vim.opt.shiftwidth = 4
|
vim.opt.shiftwidth = 4
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -6,6 +6,7 @@ vim.opt.completeopt = { "menu", "menuone" }
|
|||||||
|
|
||||||
-- shortmess is used to reduce verbocity
|
-- shortmess is used to reduce verbocity
|
||||||
-- vim.opt.shortmess = vim.opt.shortmess + { c = true }
|
-- vim.opt.shortmess = vim.opt.shortmess + { c = true }
|
||||||
|
-- ERROR: Unable to load module
|
||||||
local cmp = require("cmp")
|
local cmp = require("cmp")
|
||||||
cmp.setup({
|
cmp.setup({
|
||||||
-- configuration
|
-- configuration
|
||||||
|
|||||||
@@ -71,6 +71,16 @@ require("formatter").setup({
|
|||||||
end,
|
end,
|
||||||
},
|
},
|
||||||
|
|
||||||
|
veryl = {
|
||||||
|
function()
|
||||||
|
return {
|
||||||
|
exe = "veryl fmt",
|
||||||
|
args = {},
|
||||||
|
stdin = false,
|
||||||
|
}
|
||||||
|
end,
|
||||||
|
},
|
||||||
|
|
||||||
-- Use the special "*" filetype for defining formatter configurations on
|
-- Use the special "*" filetype for defining formatter configurations on
|
||||||
-- any filetype
|
-- any filetype
|
||||||
["*"] = {
|
["*"] = {
|
||||||
|
|||||||
@@ -10,6 +10,7 @@ local linters = {
|
|||||||
tex = { "proselint" },
|
tex = { "proselint" },
|
||||||
plaintex = { "proselint" },
|
plaintex = { "proselint" },
|
||||||
ada = { "gnat", "gcc", "adals", "cspell" },
|
ada = { "gnat", "gcc", "adals", "cspell" },
|
||||||
|
vhdl = {},
|
||||||
}
|
}
|
||||||
|
|
||||||
local fixers = {
|
local fixers = {
|
||||||
@@ -30,6 +31,8 @@ local fixers = {
|
|||||||
vim.g.ale_linters = linters
|
vim.g.ale_linters = linters
|
||||||
vim.g.ale_fix_on_save = 0
|
vim.g.ale_fix_on_save = 0
|
||||||
vim.g.ale_fixers = fixers
|
vim.g.ale_fixers = fixers
|
||||||
|
-- vim.g.ale_vhdl_ghdl_options = "--std=08 --workdir=src/"
|
||||||
|
|
||||||
vim.keymap.set("n", "<leader>lf", ":ALEFix<CR>")
|
vim.keymap.set("n", "<leader>lf", ":ALEFix<CR>")
|
||||||
vim.keymap.set("n", "<leader>lp", ":ALEFindReferences<CR>")
|
vim.keymap.set("n", "<leader>lr", ":ALEFindReferences<CR>")
|
||||||
|
vim.keymap.set("n", "<leader>ln", ":ALENext<CR>")
|
||||||
|
|||||||
@@ -56,3 +56,11 @@ end
|
|||||||
|
|
||||||
vim.lsp.enable("als")
|
vim.lsp.enable("als")
|
||||||
vim.lsp.config("als", { projectFile = get_config_file() })
|
vim.lsp.config("als", { projectFile = get_config_file() })
|
||||||
|
|
||||||
|
vim.lsp.enable("vhdl_ls")
|
||||||
|
vim.lsp.config("vhdl_ls", {
|
||||||
|
cmd = { "vhdl_ls" },
|
||||||
|
filetypes = { "vhdl" },
|
||||||
|
root_markers = { "vhdl_ls.toml", ".git" },
|
||||||
|
settings = {},
|
||||||
|
})
|
||||||
|
|||||||
@@ -56,5 +56,4 @@ vim.g.gitblame_date_format = "%r"
|
|||||||
vim.keymap.set("n", "<C-t>", ":FloatermNew --height=0.9 --width=0.9 --wintype=float --name=terminal <CR>")
|
vim.keymap.set("n", "<C-t>", ":FloatermNew --height=0.9 --width=0.9 --wintype=float --name=terminal <CR>")
|
||||||
|
|
||||||
-- Set default colorscheme
|
-- Set default colorscheme
|
||||||
-- vim.cmd("colo vim-monokai-tasty")
|
vim.cmd("colo synthweave")
|
||||||
vim.cmd("colo vim-monokai-tasty")
|
|
||||||
|
|||||||
@@ -77,11 +77,8 @@ return {
|
|||||||
"patstockwell/vim-monokai-tasty",
|
"patstockwell/vim-monokai-tasty",
|
||||||
"hiroakis/cyberspace.vim",
|
"hiroakis/cyberspace.vim",
|
||||||
"jaredgorski/spacecamp",
|
"jaredgorski/spacecamp",
|
||||||
{
|
"scottmckendry/cyberdream.nvim",
|
||||||
"scottmckendry/cyberdream.nvim",
|
"samharju/synthweave.nvim",
|
||||||
lazy = false,
|
|
||||||
priority = 1000,
|
|
||||||
},
|
|
||||||
|
|
||||||
-- Code completion / Menu
|
-- Code completion / Menu
|
||||||
"hrsh7th/nvim-cmp",
|
"hrsh7th/nvim-cmp",
|
||||||
|
|||||||
31
vhdl_defaults.toml
Normal file
31
vhdl_defaults.toml
Normal file
@@ -0,0 +1,31 @@
|
|||||||
|
# What standard to use. This is optional and defaults to VHDL2008.
|
||||||
|
standard = "2008"
|
||||||
|
# File names are either absolute or relative to the parent folder of the vhdl_ls.toml file
|
||||||
|
[libraries]
|
||||||
|
lib2.files = [
|
||||||
|
'pkg2.vhd',
|
||||||
|
]
|
||||||
|
lib1.files = [
|
||||||
|
'pkg1.vhd',
|
||||||
|
'tb_ent.vhd'
|
||||||
|
]
|
||||||
|
|
||||||
|
# Wildcards and exclude patterns are supported
|
||||||
|
lib3.files = [
|
||||||
|
'test/*.vhd',
|
||||||
|
'src/*.vhd',
|
||||||
|
'src/*/*.vhd',
|
||||||
|
]
|
||||||
|
lib3.exclude = [
|
||||||
|
'test/*_old.vhd',
|
||||||
|
]
|
||||||
|
|
||||||
|
# Libraries can be marked as third-party to disable some analysis warnings, such as unused declarations
|
||||||
|
UNISIM.files = [
|
||||||
|
'C:\Xilinx\Vivado\2023.1\data\vhdl\src\unisims\unisim_VCOMP.vhd',
|
||||||
|
]
|
||||||
|
UNISIM.is_third_party = true
|
||||||
|
|
||||||
|
[lint]
|
||||||
|
unused = 'error' # Upgrade the 'unused' diagnostic to the 'error' severity
|
||||||
|
unnecessary_work_library = false # Disable linting for the 'library work;' statement
|
||||||
Reference in New Issue
Block a user