More nvim memes
Changed color scheme, too much cyan is bad Added shift tab for completions Added leader h for hover Fixed ^S for signature_help Added colorcolumn
This commit is contained in:
parent
fd24df3d2c
commit
a6be12ee3a
1 changed files with 5 additions and 2 deletions
|
@ -1,6 +1,6 @@
|
||||||
set nocompatible
|
set nocompatible
|
||||||
filetype off
|
filetype off
|
||||||
colorscheme torte
|
colorscheme lunaperche
|
||||||
let mapleader = " "
|
let mapleader = " "
|
||||||
|
|
||||||
" ----[Plugins]----
|
" ----[Plugins]----
|
||||||
|
@ -112,6 +112,7 @@ require('mason-lspconfig').setup({
|
||||||
cmp.setup({
|
cmp.setup({
|
||||||
mapping = cmp.mapping.preset.insert({
|
mapping = cmp.mapping.preset.insert({
|
||||||
['<C-p>'] = cmp.mapping.select_prev_item(cmp_select),
|
['<C-p>'] = cmp.mapping.select_prev_item(cmp_select),
|
||||||
|
['<S-tab>'] = cmp.mapping.select_prev_item(cmp_select),
|
||||||
['<C-n>'] = cmp.mapping.select_next_item(cmp_select),
|
['<C-n>'] = cmp.mapping.select_next_item(cmp_select),
|
||||||
['<tab>'] = cmp.mapping.select_next_item(cmp_select),
|
['<tab>'] = cmp.mapping.select_next_item(cmp_select),
|
||||||
['<C-y>'] = cmp.mapping.confirm({ select = true }),
|
['<C-y>'] = cmp.mapping.confirm({ select = true }),
|
||||||
|
@ -163,6 +164,7 @@ require("nvim-treesitter.configs").setup({
|
||||||
})
|
})
|
||||||
|
|
||||||
vim.keymap.set('n', '<space>e', vim.diagnostic.open_float)
|
vim.keymap.set('n', '<space>e', vim.diagnostic.open_float)
|
||||||
|
vim.keymap.set('n', '<space>h', vim.lsp.buf.hover)
|
||||||
vim.keymap.set('n', '[d', vim.diagnostic.goto_prev)
|
vim.keymap.set('n', '[d', vim.diagnostic.goto_prev)
|
||||||
vim.keymap.set('n', ']d', vim.diagnostic.goto_next)
|
vim.keymap.set('n', ']d', vim.diagnostic.goto_next)
|
||||||
vim.keymap.set('n', '<space>q', vim.diagnostic.setloclist)
|
vim.keymap.set('n', '<space>q', vim.diagnostic.setloclist)
|
||||||
|
@ -173,7 +175,7 @@ vim.keymap.set('n', 'gi', vim.lsp.buf.implementation)
|
||||||
vim.keymap.set('n', 'grn', vim.lsp.buf.rename)
|
vim.keymap.set('n', 'grn', vim.lsp.buf.rename)
|
||||||
vim.keymap.set('n', 'gra', vim.lsp.buf.code_action)
|
vim.keymap.set('n', 'gra', vim.lsp.buf.code_action)
|
||||||
vim.keymap.set('n', 'grr', vim.lsp.buf.references)
|
vim.keymap.set('n', 'grr', vim.lsp.buf.references)
|
||||||
vim.keymap.set('i', '^S', vim.lsp.buf.signature_help)
|
vim.keymap.set('i', '<c-s>', vim.lsp.buf.signature_help)
|
||||||
|
|
||||||
local builtin = require('telescope.builtin')
|
local builtin = require('telescope.builtin')
|
||||||
vim.keymap.set('n', '<leader>ff', builtin.find_files, {})
|
vim.keymap.set('n', '<leader>ff', builtin.find_files, {})
|
||||||
|
@ -211,6 +213,7 @@ filetype plugin indent on
|
||||||
set tabstop=4
|
set tabstop=4
|
||||||
set shiftwidth=4
|
set shiftwidth=4
|
||||||
set softtabstop=4 expandtab
|
set softtabstop=4 expandtab
|
||||||
|
set colorcolumn=80
|
||||||
|
|
||||||
" Splits below and right
|
" Splits below and right
|
||||||
set splitbelow splitright
|
set splitbelow splitright
|
||||||
|
|
Loading…
Reference in a new issue