Compare commits

..

3 Commits

Author SHA1 Message Date
Yannick Reiß 8026306999 Merge branch 'master' of git.nickr.eu:yannickreiss/nvim
Test Neovim config on push / build (ubuntu-20.04) (push) Failing after 33s Details
2024-09-13 08:03:08 +02:00
Yannick Reiß 325f41372a Add hello world, better for loop snippet 2024-09-13 08:02:57 +02:00
Yannick Reiß e2836f519f Change tagbar behavior to support both operation modes 2024-09-10 10:20:13 +02:00
2 changed files with 13 additions and 5 deletions

View File

@ -1,10 +1,16 @@
snippet hello "Hello World"
Hallo
extends cpp
priority 200
snippet helloworld "Hello World"
#include <stdio.h>
int main(void){(void)printf("Hello World!\n");return 0;}
endsnippet
snippet for "For-loop head"
for (${1:int i} = ${2:0}; ${3:i}; ${4:--i}) {
$5
for (${1:int ${2:i}} = ${3:0}; ${4:$2 < $5}; ${6:$2++}) {
$7
}
$0
endsnippet

View File

@ -136,4 +136,6 @@ require("lspconfig").als.setup({
})
-- Tagbar
vim.keymap.set("n", "<F8>", ":TagbarToggle<CR>")
vim.keymap.set("n", "<F8>", ":TagbarToggle<CR>") -- permanent window
vim.keymap.set("n", "<C-j>", ":TagbarOpenAutoClose<CR>") -- select, jump, close
vim.g.tagbar_autoclose = 0 -- do not autoclose after selection