Compare commits

...

5 Commits

Author SHA1 Message Date
Markus Dieckmann a7a6f01464 load configs 2023-07-26 11:00:07 +02:00
Markus Dieckmann c1d9ac83d1 pin fidget 2023-07-26 11:00:01 +02:00
Markus Dieckmann e32ba63a54 add jester 2023-07-26 10:59:49 +02:00
Markus Dieckmann a337f01534 add autopairs config 2023-07-26 10:59:35 +02:00
Markus Dieckmann 044229a056 add vim-illuminate remove brightest 2023-07-26 10:59:06 +02:00
6 changed files with 88 additions and 4 deletions

View File

@ -1,6 +1,7 @@
vim.g.mapleader = " "
require('keymap')
require('plugins')
require('jester_config')
require('globals_opts')
require('native_commands')
require('nvim-lightbulb_config')
@ -19,3 +20,5 @@ require("trouble_config")
require("symbols_outline")
require("luasnip_config")
require("brightest_config")
require("nvim_autopairs_config")
require("vim_illuminate_config")

View File

@ -1,4 +1,5 @@
vim.g['brightest#highlight'] = { group = 'BrightestUnderline' }
vim.g['brightest_enable'] = 0
vim.g['brightest#enable_filetypes'] = {
_ = 1,
vim = 0,

View File

@ -7,7 +7,7 @@ require'jester'.setup({
path_to_jest_debug = './node_modules/jest/bin/jest', -- used for debugging
terminal_cmd = ":vsplit | terminal", -- used to spawn a terminal for running tests, for debugging refer to nvim-dap's config
dap = { -- debug adapter configuration
type = 'node2',
type = 'pwa-node',
request = 'launch',
cwd = vim.fn.getcwd(),
runtimeArgs = {'--inspect-brk', '$path_to_jest', '--no-coverage', '-t', '$result', '--', '$file'},

View File

@ -0,0 +1,26 @@
require('nvim-autopairs').setup({
disable_filetype = { "TelescopePrompt", "vim", "spectre_panel" },
disable_in_macro = true, -- disable when recording or executing a macro
disable_in_visualblock = false, -- disable when insert after visual block mode
disable_in_replace_mode = true,
ignored_next_char = [=[[%w%%%'%[%"%.%`%$]]=],
enable_moveright = true,
enable_afterquote = true, -- add bracket pairs after quote
enable_check_bracket_line = true, --- check bracket in same line
enable_bracket_in_quote = true, --
enable_abbr = false, -- trigger abbreviation
break_undo = true, -- switch for basic rule break undo sequence
check_ts = false,
map_cr = true,
map_bs = true, -- map the <BS> key
map_c_h = false, -- Map the <C-h> key to delete a pair
map_c_w = false -- map <c-w> to delete a pair if possible
})
-- If you want insert `(` after select function or method item
local cmp_autopairs = require('nvim-autopairs.completion.cmp')
local cmp = require('cmp')
cmp.event:on(
'confirm_done',
cmp_autopairs.on_confirm_done()
)

View File

@ -28,7 +28,11 @@ require("packer").startup(function(use)
requires = { { "nvim-lua/plenary.nvim" } },
})
use("nvim-lua/lsp-status.nvim")
use("jiangmiao/auto-pairs")
-- use("jiangmiao/auto-pairs")
use {
"windwp/nvim-autopairs"
-- config = function() require("nvim-autopairs").setup {} end
}
use("machakann/vim-highlightedyank")
use("bling/vim-airline")
use("airblade/vim-gitgutter")
@ -102,12 +106,13 @@ require("packer").startup(function(use)
requires = "kyazdani42/nvim-web-devicons"
}
use 'simrat39/symbols-outline.nvim'
use 'j-hui/fidget.nvim'
use { 'j-hui/fidget.nvim', version = 'legacy' }
use { 'shuntaka9576/preview-swagger.nvim' }
use 'towolf/vim-helm'
use { 'catppuccin/nvim', as = "catppuccin" }
use 'gpanders/editorconfig.nvim'
use 'osyo-manga/vim-brightest'
use 'RRethy/vim-illuminate'
use 'David-Kunz/jester'
use { 'kylechui/nvim-surround',
tag = "*",
config = function()

View File

@ -0,0 +1,49 @@
-- default configuration
require('illuminate').configure({
-- providers: provider used to get references in the buffer, ordered by priority
providers = {
'treesitter',
'regex',
},
-- delay: delay in milliseconds
delay = 100,
-- filetype_overrides: filetype specific overrides.
-- The keys are strings to represent the filetype while the values are tables that
-- supports the same keys passed to .configure except for filetypes_denylist and filetypes_allowlist
filetype_overrides = { },
-- filetypes_denylist: filetypes to not illuminate, this overrides filetypes_allowlist
filetypes_denylist = {
'dirvish',
'fugitive',
'NvimTree',
'TelescopePrompt',
'Trouble'
},
-- filetypes_allowlist: filetypes to illuminate, this is overriden by filetypes_denylist
filetypes_allowlist = {},
-- modes_denylist: modes to not illuminate, this overrides modes_allowlist
-- See `:help mode()` for possible values
modes_denylist = {},
-- modes_allowlist: modes to illuminate, this is overriden by modes_denylist
-- See `:help mode()` for possible values
modes_allowlist = {},
-- providers_regex_syntax_denylist: syntax to not illuminate, this overrides providers_regex_syntax_allowlist
-- Only applies to the 'regex' provider
-- Use :echom synIDattr(synIDtrans(synID(line('.'), col('.'), 1)), 'name')
providers_regex_syntax_denylist = {},
-- providers_regex_syntax_allowlist: syntax to illuminate, this is overriden by providers_regex_syntax_denylist
-- Only applies to the 'regex' provider
-- Use :echom synIDattr(synIDtrans(synID(line('.'), col('.'), 1)), 'name')
providers_regex_syntax_allowlist = {},
-- under_cursor: whether or not to illuminate under the cursor
under_cursor = true,
-- large_file_cutoff: number of lines at which to use large_file_config
-- The `under_cursor` option is disabled when this cutoff is hit
large_file_cutoff = 1000,
-- large_file_config: config to use for large files (based on large_file_cutoff).
-- Supports the same keys passed to .configure
-- If nil, vim-illuminate will be disabled for large files.
large_file_overrides = nil,
-- min_count_to_highlight: minimum number of matches required to perform highlighting
min_count_to_highlight = 1,
})