Compare commits
7 Commits
f7056eca23
...
4e6384ac3e
Author | SHA1 | Date | |
---|---|---|---|
4e6384ac3e | |||
ecf6b9fb6a | |||
b2e957ba9c | |||
150341e4c2 | |||
6f637e746e | |||
d6214ac324 | |||
d8519974f5 |
@ -45,7 +45,7 @@ font:
|
|||||||
style: Bold Italic
|
style: Bold Italic
|
||||||
|
|
||||||
# Point size
|
# Point size
|
||||||
size: 11.0
|
size: 12.0
|
||||||
|
|
||||||
offset:
|
offset:
|
||||||
x: 0
|
x: 0
|
||||||
@ -82,6 +82,22 @@ selection:
|
|||||||
|
|
||||||
live_config_reload: true
|
live_config_reload: true
|
||||||
|
|
||||||
|
cursor:
|
||||||
|
# Cursor style
|
||||||
|
#
|
||||||
|
# Values for 'style':
|
||||||
|
# - ▇ Block
|
||||||
|
# - _ Underline
|
||||||
|
# - | Beam
|
||||||
|
style: Block
|
||||||
|
|
||||||
|
# If this is `true`, the cursor will be rendered as a hollow box when the
|
||||||
|
# window is not focused.
|
||||||
|
unfocused_hollow: true
|
||||||
|
|
||||||
|
mouse_bindings:
|
||||||
|
- { mouse: Middle, action: PasteSelection }
|
||||||
|
|
||||||
key_bindings:
|
key_bindings:
|
||||||
- { key: V, mods: Control|Shift, action: Paste }
|
- { key: V, mods: Control|Shift, action: Paste }
|
||||||
- { key: C, mods: Control|Shift, action: Copy }
|
- { key: C, mods: Control|Shift, action: Copy }
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
auto-reload yes
|
auto-reload yes
|
||||||
reload-time 30
|
reload-time 30
|
||||||
browser chromium
|
browser "chromium --incognito"
|
||||||
macro y set browser "tmux new-window mpv %u"; open-in-browser ; set browser chromium
|
macro y set browser "tmux new-window mpv %u"; open-in-browser ; set browser chromium
|
||||||
macro Y set browser "mpv %u"; open-in-browser ; set browser chromium
|
macro Y set browser "mpv %u"; open-in-browser ; set browser chromium
|
||||||
|
|
||||||
|
@ -65,26 +65,26 @@ cmp.setup{
|
|||||||
},
|
},
|
||||||
mapping = {
|
mapping = {
|
||||||
-- ["<cr>"] = cmp.mapping.confirm({select = true, behavior = cmp.ConfirmBehavior.Replace}),
|
-- ["<cr>"] = cmp.mapping.confirm({select = true, behavior = cmp.ConfirmBehavior.Replace}),
|
||||||
["<cr>"] = cmp.mapping.confirm({select = true, behavior = cmp.ConfirmBehavior.Insert}),
|
["<Tab>"] = cmp.mapping.confirm({select = true, behavior = cmp.ConfirmBehavior.Insert}),
|
||||||
["<Tab>"] = cmp.mapping(function(fallback)
|
-- ["<Tab>"] = cmp.mapping(function(fallback)
|
||||||
if vim.fn.pumvisible() == 1 then
|
-- if vim.fn.pumvisible() == 1 then
|
||||||
feedkey("<C-n>", "n")
|
-- feedkey("<C-n>", "n")
|
||||||
elseif vim.fn["vsnip#available"]() == 1 then
|
-- elseif vim.fn["vsnip#available"]() == 1 then
|
||||||
feedkey("<Plug>(vsnip-expand-or-jump)", "")
|
-- feedkey("<Plug>(vsnip-expand-or-jump)", "")
|
||||||
elseif has_words_before() then
|
-- elseif has_words_before() then
|
||||||
cmp.complete()
|
-- cmp.complete()
|
||||||
else
|
-- else
|
||||||
fallback() -- The fallback function sends a already mapped key. In this case, it's probably `<Tab>`.
|
-- fallback() -- The fallback function sends a already mapped key. In this case, it's probably `<Tab>`.
|
||||||
end
|
-- end
|
||||||
end, { "i", "s" }),
|
-- end, { "i", "s" }),
|
||||||
|
|
||||||
["<S-Tab>"] = cmp.mapping(function()
|
-- ["<S-Tab>"] = cmp.mapping(function()
|
||||||
if vim.fn.pumvisible() == 1 then
|
-- if vim.fn.pumvisible() == 1 then
|
||||||
feedkey("<C-p>", "n")
|
-- feedkey("<C-p>", "n")
|
||||||
elseif vim.fn["vsnip#jumpable"](-1) == 1 then
|
-- elseif vim.fn["vsnip#jumpable"](-1) == 1 then
|
||||||
feedkey("<Plug>(vsnip-jump-prev)", "")
|
-- feedkey("<Plug>(vsnip-jump-prev)", "")
|
||||||
end
|
-- end
|
||||||
end, { "i", "s" }),
|
-- end, { "i", "s" }),
|
||||||
},
|
},
|
||||||
sources = {
|
sources = {
|
||||||
{ name = 'vsnip' },
|
{ name = 'vsnip' },
|
||||||
|
@ -168,6 +168,8 @@ ins_left {function() return '%=' end}
|
|||||||
|
|
||||||
ins_left {
|
ins_left {
|
||||||
'filename',
|
'filename',
|
||||||
|
file_status = true,
|
||||||
|
path = 1,
|
||||||
condition = conditions.buffer_not_empty,
|
condition = conditions.buffer_not_empty,
|
||||||
color = {fg = colors.magenta, gui = 'bold'}
|
color = {fg = colors.magenta, gui = 'bold'}
|
||||||
}
|
}
|
||||||
|
@ -17,7 +17,7 @@ local on_attach = function(client, bufnr)
|
|||||||
-- See references
|
-- See references
|
||||||
buf_set_keymap('n', 'gr', '<cmd>lua vim.lsp.buf.references()<CR>', opts)
|
buf_set_keymap('n', 'gr', '<cmd>lua vim.lsp.buf.references()<CR>', opts)
|
||||||
-- show documentation
|
-- show documentation
|
||||||
buf_set_keymap('n', 'K', '<Cmd>lua vim.lsp.buf.hover()<CR>', opts)
|
buf_set_keymap('n', '<leader>K', '<Cmd>lua vim.lsp.buf.hover()<CR>', opts)
|
||||||
-- Rename
|
-- Rename
|
||||||
buf_set_keymap('n', '<leader>rn', '<cmd>lua vim.lsp.buf.rename()<CR>', opts)
|
buf_set_keymap('n', '<leader>rn', '<cmd>lua vim.lsp.buf.rename()<CR>', opts)
|
||||||
|
|
||||||
@ -45,7 +45,7 @@ end
|
|||||||
|
|
||||||
-- Use a loop to conveniently call 'setup' on multiple servers and
|
-- Use a loop to conveniently call 'setup' on multiple servers and
|
||||||
-- map buffer local keybindings when the language server attaches
|
-- map buffer local keybindings when the language server attaches
|
||||||
local servers = { "texlab", "pyright", "vuels", "tsserver" }
|
local servers = { "texlab", "pyright", "vuels", "tsserver", "html" }
|
||||||
for _, lsp in ipairs(servers) do
|
for _, lsp in ipairs(servers) do
|
||||||
nvim_lsp[lsp].setup {
|
nvim_lsp[lsp].setup {
|
||||||
on_attach = on_attach,
|
on_attach = on_attach,
|
||||||
|
@ -49,3 +49,7 @@ exec([[
|
|||||||
]], false)
|
]], false)
|
||||||
|
|
||||||
cmd('colorscheme gruvbox')
|
cmd('colorscheme gruvbox')
|
||||||
|
|
||||||
|
|
||||||
|
-- Python 3
|
||||||
|
g.python3_host_prog="~/.venv/nvim/bin/python"
|
||||||
|
@ -14,7 +14,7 @@ set $down j
|
|||||||
set $up k
|
set $up k
|
||||||
set $right l
|
set $right l
|
||||||
# Your preferred terminal emulator
|
# Your preferred terminal emulator
|
||||||
set $term urxvt
|
set $term alacritty
|
||||||
# Your preferred application launcher
|
# Your preferred application launcher
|
||||||
# Note: pass the final command to swaymsg so that the resulting window can be opened
|
# Note: pass the final command to swaymsg so that the resulting window can be opened
|
||||||
# on the original workspace that the command was run on.
|
# on the original workspace that the command was run on.
|
||||||
|
@ -68,6 +68,9 @@ bindkey -M vicmd 'j' history-substring-search-down
|
|||||||
# Auto-ls
|
# Auto-ls
|
||||||
source ~/.config/zsh/auto-ls/auto-ls.zsh
|
source ~/.config/zsh/auto-ls/auto-ls.zsh
|
||||||
|
|
||||||
|
# Pyenv
|
||||||
|
eval "$(pyenv init --path)"
|
||||||
|
|
||||||
|
|
||||||
source ~/.config/zsh/completion.zsh
|
source ~/.config/zsh/completion.zsh
|
||||||
source ~/.config/zsh/key-bindings.zsh
|
source ~/.config/zsh/key-bindings.zsh
|
||||||
|
Loading…
Reference in New Issue
Block a user