nvim: borrar config de nvim

This commit is contained in:
Cat /dev/Nulo 2021-12-22 20:54:37 -03:00
parent 1bf8cf6b71
commit 749c1055d1
14 changed files with 0 additions and 134 deletions

View file

@ -1,86 +0,0 @@
set mouse=a " Enable mouse
set linebreak " Wrap words
set hidden " Do not save when switching buffers
set inccommand=nosplit " Incremental live completion
set tabstop=4 shiftwidth=4 " 4 space \t
set ignorecase smartcase
set updatetime=250
set termguicolors
" colorscheme rose-pine
colorscheme paige
" autocmd ColorScheme * highlight! Normal guibg=NONE
set completeopt=menu,menuone,noselect
lua << EOF
local nvim_lsp = require('lspconfig')
-- Use an on_attach function to only map the following keys
-- after the language server attaches to the current buffer
local on_attach = function(client, bufnr)
local function buf_set_keymap(...) vim.api.nvim_buf_set_keymap(bufnr, ...) end
local function buf_set_option(...) vim.api.nvim_buf_set_option(bufnr, ...) end
buf_set_option('omnifunc', 'v:lua.vim.lsp.omnifunc')
local opts = { noremap=true, silent=true }
buf_set_keymap('n', 'gD', '<cmd>lua vim.lsp.buf.declaration()<CR>', opts)
buf_set_keymap('n', 'gd', '<cmd>lua vim.lsp.buf.definition()<CR>', opts)
buf_set_keymap('n', 'K', '<cmd>lua vim.lsp.buf.hover()<CR>', opts)
buf_set_keymap('n', 'gi', '<cmd>lua vim.lsp.buf.implementation()<CR>', opts)
buf_set_keymap('n', '<C-k>', '<cmd>lua vim.lsp.buf.signature_help()<CR>', opts)
buf_set_keymap('n', '<space>wa', '<cmd>lua vim.lsp.buf.add_workspace_folder()<CR>', opts)
buf_set_keymap('n', '<space>wr', '<cmd>lua vim.lsp.buf.remove_workspace_folder()<CR>', opts)
buf_set_keymap('n', '<space>wl', '<cmd>lua print(vim.inspect(vim.lsp.buf.list_workspace_folders()))<CR>', opts)
buf_set_keymap('n', '<space>D', '<cmd>lua vim.lsp.buf.type_definition()<CR>', opts)
buf_set_keymap('n', '<space>rn', '<cmd>lua vim.lsp.buf.rename()<CR>', opts)
buf_set_keymap('n', '<space>ca', '<cmd>lua vim.lsp.buf.code_action()<CR>', opts)
buf_set_keymap('n', 'gr', '<cmd>lua vim.lsp.buf.references()<CR>', opts)
buf_set_keymap('n', '<space>e', '<cmd>lua vim.lsp.diagnostic.show_line_diagnostics()<CR>', opts)
buf_set_keymap('n', '[d', '<cmd>lua vim.lsp.diagnostic.goto_prev()<CR>', opts)
buf_set_keymap('n', ']d', '<cmd>lua vim.lsp.diagnostic.goto_next()<CR>', opts)
buf_set_keymap('n', '<space>q', '<cmd>lua vim.lsp.diagnostic.set_loclist()<CR>', opts)
end
local servers = { 'zls', 'gopls', 'tsserver', 'svelte' }
for _, lsp in ipairs(servers) do
nvim_lsp[lsp].setup {
on_attach = on_attach,
}
end
local prettier = {
function()
return {
exe = "prettier",
args = {"--stdin-filepath", vim.fn.fnameescape(vim.api.nvim_buf_get_name(0))},
stdin = true
}
end
}
require('formatter').setup({
filetype = {
javascript = prettier,
typescript = prettier,
html = prettier,
css = prettier,
scss = prettier,
sass = prettier,
svelte = prettier, -- necesita https://github.com/sveltejs/prettier-plugin-svelte
}
})
EOF
augroup FormatAutogroup
autocmd!
autocmd BufWritePost *.js,*.ts,*.html,*.css,*.scss,*.sass FormatWrite
autocmd BufWritePost *.svelte FormatWrite " necesita https://github.com/sveltejs/prettier-plugin-svelte
augroup END
let g:fzf_layout = { 'down': '40%' }
noremap <space>f :Files<return>
noremap <space>b :Buffers<return>

@ -1 +0,0 @@
Subproject commit 0cdce2da8762ee01ee7d8df047b6e569d58c1ba3

@ -1 +0,0 @@
Subproject commit e4c3ecc57e99f4037199f11b384a7f8758d1a0ff

@ -1 +0,0 @@
Subproject commit d6aa21476b2854694e6aa7b0941b8992a906c5ec

@ -1 +0,0 @@
Subproject commit 3a22ac6f8d87d42f89b9de791053c98b803f1b6d

@ -1 +0,0 @@
Subproject commit 0d72c3814da3cc01d4435deaa6168fa913c694fd

@ -1 +0,0 @@
Subproject commit e9bf877ded422ce4323980c8347ca8578fe3b408

@ -1 +0,0 @@
Subproject commit 349340debb34f6302931f0eb7139b2c11dfdf427

@ -1 +0,0 @@
Subproject commit 2831f4872431685d28fbe3e567cd539a455fe750

@ -1 +0,0 @@
Subproject commit 38bd4010110614822cde523ebc5724963312ab63

@ -1 +0,0 @@
Subproject commit 5f88e5a0fe7dcece0008dae3453edbd99153a042

@ -1 +0,0 @@
Subproject commit 716fe223a430a1379ef1e4bec84348a2f07430fd

@ -1 +0,0 @@
Subproject commit fb534e7d12be7e529f79ad5ab99c08dc99f53294

36
.gitmodules vendored
View file

@ -1,39 +1,3 @@
[submodule ".config/nvim/pack/plugins/start/nvim-lspconfig"]
path = .config/nvim/pack/plugins/start/nvim-lspconfig
url = https://github.com/neovim/nvim-lspconfig
[submodule ".config/nvim/pack/plugins/start/vim-commentary"]
path = .config/nvim/pack/plugins/start/vim-commentary
url = https://tpope.io/vim/commentary.git
[submodule ".config/nvim/pack/plugins/start/vim-sleuth"]
path = .config/nvim/pack/plugins/start/vim-sleuth
url = https://github.com/tpope/vim-sleuth
[submodule ".config/nvim/pack/plugins/start/zig.vim"]
path = .config/nvim/pack/plugins/start/zig.vim
url = https://github.com/ziglang/zig.vim
[submodule ".config/nvim/pack/plugins/start/fzf.vim"]
path = .config/nvim/pack/plugins/start/fzf.vim
url = https://github.com/junegunn/fzf.vim
[submodule ".config/nvim/pack/plugins/start/rose-pine"]
path = .config/nvim/pack/plugins/start/rose-pine
url = https://github.com/rose-pine/neovim
[submodule ".config/nvim/pack/plugins/start/vim-go"]
path = .config/nvim/pack/plugins/start/vim-go
url = https://github.com/fatih/vim-go
[submodule ".config/nvim/pack/plugins/start/fzf"]
path = .config/nvim/pack/plugins/start/fzf
url = https://github.com/junegunn/fzf
[submodule ".config/nvim/pack/plugins/start/formatter.nvim"]
path = .config/nvim/pack/plugins/start/formatter.nvim
url = https://github.com/mhartington/formatter.nvim
[submodule ".config/nvim/pack/plugins/start/vim-svelte"]
path = .config/nvim/pack/plugins/start/vim-svelte
url = https://github.com/evanleck/vim-svelte
[submodule ".config/nvim/pack/plugins/start/vim-yami"]
path = .config/nvim/pack/plugins/start/vim-yami
url = https://github.com/danishprakash/vim-yami
[submodule ".config/nvim/pack/plugins/start/paige"]
path = .config/nvim/pack/plugins/start/paige
url = https://git.sr.ht/~leon_plickat/paige
[submodule ".config/kak/plugins/smarttab.kak"]
path = .config/kak/plugins/smarttab.kak
url = https://github.com/andreyorst/smarttab.kak