Compare commits
8 Commits
Author | SHA1 | Date |
---|---|---|
Christoph J. Scherr | e1d8b6fad5 | |
Christoph J. Scherr | c77e35e251 | |
Christoph J. Scherr | b761b44ebb | |
Christoph J. Scherr | 0192539dab | |
Christoph J. Scherr | 44d7e07635 | |
Christoph J. Scherr | e405a44cff | |
Christoph J. Scherr | dea40137e5 | |
Christoph J. Scherr | 1cedb2fbc9 |
|
@ -15,6 +15,17 @@ vim.api.nvim_create_autocmd('FileType', {
|
||||||
end,
|
end,
|
||||||
})
|
})
|
||||||
|
|
||||||
|
-- use html for htmldjango
|
||||||
|
vim.api.nvim_create_autocmd('FileType', {
|
||||||
|
group = augroup,
|
||||||
|
pattern = {
|
||||||
|
'html',
|
||||||
|
},
|
||||||
|
callback = function()
|
||||||
|
vim.bo.filetype = 'html'
|
||||||
|
end,
|
||||||
|
})
|
||||||
|
|
||||||
-- always use the tex filetype for latex things, as those are most supported by
|
-- always use the tex filetype for latex things, as those are most supported by
|
||||||
-- latex language servers.
|
-- latex language servers.
|
||||||
vim.api.nvim_create_autocmd('FileType', {
|
vim.api.nvim_create_autocmd('FileType', {
|
||||||
|
|
|
@ -29,10 +29,11 @@ vim.keymap.set({ 'v', 'n' }, 'zk', '<C-e>', { desc = 'move and scroll up' })
|
||||||
vim.keymap.set({ 'v', 'n' }, 'zj', '<C-y>', { desc = 'move and scroll down' })
|
vim.keymap.set({ 'v', 'n' }, 'zj', '<C-y>', { desc = 'move and scroll down' })
|
||||||
|
|
||||||
-- go to beginning and end in insert mode
|
-- go to beginning and end in insert mode
|
||||||
vim.keymap.set('i', '<C-s>', '<esc>^i', { desc = 'Go to the start of the line' })
|
vim.keymap.set('i', '<C-S-h>', '<esc>^i', { desc = 'Go to the start of the line' })
|
||||||
vim.keymap.set('i', '<C-e>', '<End>', { desc = 'Go to the end of the line' })
|
vim.keymap.set('i', '<C-S-l>', '<End>', { desc = 'Go to the end of the line' })
|
||||||
vim.keymap.set('i', '<C-w>', '<esc>lwi', { desc = 'Go a word further' })
|
vim.keymap.set('i', '<C-w>', '<esc>lwi', { desc = 'Go a word further' })
|
||||||
vim.keymap.set('i', '<C-b>', '<esc>lbi', { desc = 'Go a word backward' })
|
vim.keymap.set('i', '<C-b>', '<esc>lbi', { desc = 'Go a word backward' })
|
||||||
|
vim.keymap.set('i', '<C-e>', '<esc>lea', { desc = 'Go a to next word end' })
|
||||||
|
|
||||||
-- navigate hjkl in insert mode
|
-- navigate hjkl in insert mode
|
||||||
vim.keymap.set('i', '<C-h>', '<Left>', { desc = 'Move left' })
|
vim.keymap.set('i', '<C-h>', '<Left>', { desc = 'Move left' })
|
||||||
|
|
|
@ -141,27 +141,10 @@ local servers = {
|
||||||
tinymist = {},
|
tinymist = {},
|
||||||
html = {},
|
html = {},
|
||||||
cssls = {},
|
cssls = {},
|
||||||
tsserver = {},
|
|
||||||
clangd = {},
|
clangd = {},
|
||||||
bashls = {},
|
bashls = {},
|
||||||
cmake = {},
|
|
||||||
yamlls = {},
|
yamlls = {},
|
||||||
texlab = {},
|
texlab = {},
|
||||||
basedpyright = {
|
|
||||||
root_dir = vim.loop.cwd,
|
|
||||||
flags = { debounce_text_changes = 300 },
|
|
||||||
single_file_support = true,
|
|
||||||
settings = {
|
|
||||||
python = {
|
|
||||||
analysis = {
|
|
||||||
autoSearchPaths = true,
|
|
||||||
diagnosticMode = 'openFilesOnly',
|
|
||||||
useLibraryCodeForTypes = true,
|
|
||||||
typeCheckingMode = 'basic',
|
|
||||||
},
|
|
||||||
},
|
|
||||||
},
|
|
||||||
},
|
|
||||||
rust_analyzer = {
|
rust_analyzer = {
|
||||||
settings = {
|
settings = {
|
||||||
['rust-analyzer'] = {
|
['rust-analyzer'] = {
|
||||||
|
@ -175,6 +158,7 @@ local servers = {
|
||||||
prefix = 'self',
|
prefix = 'self',
|
||||||
},
|
},
|
||||||
cargo = {
|
cargo = {
|
||||||
|
features = 'all',
|
||||||
buildScripts = {
|
buildScripts = {
|
||||||
enable = true,
|
enable = true,
|
||||||
},
|
},
|
||||||
|
|
|
@ -1,6 +1,4 @@
|
||||||
return {
|
return {
|
||||||
'tpope/vim-sleuth', -- Detect tabstop and shiftwidth automatically
|
|
||||||
|
|
||||||
-- NOTE: Plugins can specify dependencies.
|
-- NOTE: Plugins can specify dependencies.
|
||||||
--
|
--
|
||||||
-- The dependencies are proper plugin specifications as well - anything
|
-- The dependencies are proper plugin specifications as well - anything
|
||||||
|
|
|
@ -118,8 +118,8 @@ return {
|
||||||
|
|
||||||
local leap = require 'leap'
|
local leap = require 'leap'
|
||||||
|
|
||||||
leap.opts.safe_labels = 'sfnutSFNLHMUGTZ?'
|
leap.opts.safe_labels = 'asfghjkliztrewb'
|
||||||
leap.opts.labels = 'sfnjklhodweimbuyvrgtaqpcxzSFNJKLHODWEIMBUYVRGTAQPCXZ?'
|
leap.opts.labels = 'sfnjklhodweimbuyvrgtaqpcxz'
|
||||||
leap.opts.special_keys = {
|
leap.opts.special_keys = {
|
||||||
next_target = '<enter>',
|
next_target = '<enter>',
|
||||||
prev_target = '<tab>',
|
prev_target = '<tab>',
|
||||||
|
@ -198,19 +198,24 @@ return {
|
||||||
local wk = require 'which-key'
|
local wk = require 'which-key'
|
||||||
local defaults = {
|
local defaults = {
|
||||||
mode = { 'n', 'v' },
|
mode = { 'n', 'v' },
|
||||||
['<localleader>'] = { name = '+select', f = { name = '[F]ind' } },
|
{ '<leader>c', group = '[C]ode/[C]olor' },
|
||||||
['g'] = { name = '+goto' },
|
{ '<leader>ct', group = '[T]rouble' },
|
||||||
[']'] = { name = '+next' },
|
{ '<leader>d', group = '[D]ebug' },
|
||||||
['['] = { name = '+prev' },
|
{ '<leader>dc', group = '[C]hange' },
|
||||||
['<leader>d'] = { name = '+[D]ebug', w = { name = '[W]indow' }, c = { name = '[C]hange' } },
|
{ '<leader>dw', group = '[W]indow' },
|
||||||
['<leader>c'] = { name = '+[C]ode/[C]olor', t = { name = '+[T]rouble' } },
|
{ '<leader>f', group = '[F]ormatting' },
|
||||||
['<leader>g'] = { name = '+[G]ood tools' },
|
{ '<leader>g', group = '[G]ood tools' },
|
||||||
['<leader>f'] = { name = '+[F]ormatting' },
|
{ '<leader>r', group = '[R]ename' },
|
||||||
['<leader>r'] = { name = '[R]ename' },
|
{ '<leader>t', group = '[T]oggle' },
|
||||||
['<leader>w'] = { name = '[W]orkspace', b = { name = 'buffer' } },
|
{ '<leader>w', group = '[W]orkspace' },
|
||||||
['<leader>t'] = { name = '[T]oggle', ['🚫'] = 'which_key_ignore' },
|
{ '<leader>wb', group = 'buffer' },
|
||||||
|
{ '<localleader>', group = 'select' },
|
||||||
|
{ '<localleader>f', group = '[F]ind' },
|
||||||
|
{ '[', group = 'prev' },
|
||||||
|
{ ']', group = 'next' },
|
||||||
|
{ 'g', group = 'goto' },
|
||||||
}
|
}
|
||||||
wk.register(defaults, opts)
|
wk.add(defaults, opts)
|
||||||
end,
|
end,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
@ -638,6 +643,7 @@ return {
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
'MeanderingProgrammer/dashboard.nvim',
|
'MeanderingProgrammer/dashboard.nvim',
|
||||||
|
enable = true,
|
||||||
event = 'VimEnter',
|
event = 'VimEnter',
|
||||||
dependencies = {
|
dependencies = {
|
||||||
'MaximilianLloyd/ascii.nvim',
|
'MaximilianLloyd/ascii.nvim',
|
||||||
|
|
Loading…
Reference in New Issue