Compare commits
5 Commits
8b1abcfda9
...
a7a6f01464
Author | SHA1 | Date |
---|---|---|
Markus Dieckmann | a7a6f01464 | |
Markus Dieckmann | c1d9ac83d1 | |
Markus Dieckmann | e32ba63a54 | |
Markus Dieckmann | a337f01534 | |
Markus Dieckmann | 044229a056 |
|
@ -1,6 +1,7 @@
|
||||||
vim.g.mapleader = " "
|
vim.g.mapleader = " "
|
||||||
require('keymap')
|
require('keymap')
|
||||||
require('plugins')
|
require('plugins')
|
||||||
|
require('jester_config')
|
||||||
require('globals_opts')
|
require('globals_opts')
|
||||||
require('native_commands')
|
require('native_commands')
|
||||||
require('nvim-lightbulb_config')
|
require('nvim-lightbulb_config')
|
||||||
|
@ -19,3 +20,5 @@ require("trouble_config")
|
||||||
require("symbols_outline")
|
require("symbols_outline")
|
||||||
require("luasnip_config")
|
require("luasnip_config")
|
||||||
require("brightest_config")
|
require("brightest_config")
|
||||||
|
require("nvim_autopairs_config")
|
||||||
|
require("vim_illuminate_config")
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
vim.g['brightest#highlight'] = { group = 'BrightestUnderline' }
|
vim.g['brightest#highlight'] = { group = 'BrightestUnderline' }
|
||||||
|
vim.g['brightest_enable'] = 0
|
||||||
vim.g['brightest#enable_filetypes'] = {
|
vim.g['brightest#enable_filetypes'] = {
|
||||||
_ = 1,
|
_ = 1,
|
||||||
vim = 0,
|
vim = 0,
|
||||||
|
|
|
@ -7,7 +7,7 @@ require'jester'.setup({
|
||||||
path_to_jest_debug = './node_modules/jest/bin/jest', -- used for debugging
|
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
|
terminal_cmd = ":vsplit | terminal", -- used to spawn a terminal for running tests, for debugging refer to nvim-dap's config
|
||||||
dap = { -- debug adapter configuration
|
dap = { -- debug adapter configuration
|
||||||
type = 'node2',
|
type = 'pwa-node',
|
||||||
request = 'launch',
|
request = 'launch',
|
||||||
cwd = vim.fn.getcwd(),
|
cwd = vim.fn.getcwd(),
|
||||||
runtimeArgs = {'--inspect-brk', '$path_to_jest', '--no-coverage', '-t', '$result', '--', '$file'},
|
runtimeArgs = {'--inspect-brk', '$path_to_jest', '--no-coverage', '-t', '$result', '--', '$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()
|
||||||
|
)
|
|
@ -28,7 +28,11 @@ require("packer").startup(function(use)
|
||||||
requires = { { "nvim-lua/plenary.nvim" } },
|
requires = { { "nvim-lua/plenary.nvim" } },
|
||||||
})
|
})
|
||||||
use("nvim-lua/lsp-status.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("machakann/vim-highlightedyank")
|
||||||
use("bling/vim-airline")
|
use("bling/vim-airline")
|
||||||
use("airblade/vim-gitgutter")
|
use("airblade/vim-gitgutter")
|
||||||
|
@ -102,12 +106,13 @@ require("packer").startup(function(use)
|
||||||
requires = "kyazdani42/nvim-web-devicons"
|
requires = "kyazdani42/nvim-web-devicons"
|
||||||
}
|
}
|
||||||
use 'simrat39/symbols-outline.nvim'
|
use 'simrat39/symbols-outline.nvim'
|
||||||
use 'j-hui/fidget.nvim'
|
use { 'j-hui/fidget.nvim', version = 'legacy' }
|
||||||
use { 'shuntaka9576/preview-swagger.nvim' }
|
use { 'shuntaka9576/preview-swagger.nvim' }
|
||||||
use 'towolf/vim-helm'
|
use 'towolf/vim-helm'
|
||||||
use { 'catppuccin/nvim', as = "catppuccin" }
|
use { 'catppuccin/nvim', as = "catppuccin" }
|
||||||
use 'gpanders/editorconfig.nvim'
|
use 'gpanders/editorconfig.nvim'
|
||||||
use 'osyo-manga/vim-brightest'
|
use 'RRethy/vim-illuminate'
|
||||||
|
use 'David-Kunz/jester'
|
||||||
use { 'kylechui/nvim-surround',
|
use { 'kylechui/nvim-surround',
|
||||||
tag = "*",
|
tag = "*",
|
||||||
config = function()
|
config = function()
|
||||||
|
|
|
@ -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,
|
||||||
|
})
|
Loading…
Reference in New Issue