diff --git a/.config/nvim/init.vim b/.config/nvim/init.vim deleted file mode 100644 index 2cefaf0..0000000 --- a/.config/nvim/init.vim +++ /dev/null @@ -1,92 +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 relativenumber cursorline cursorlineopt=number lazyredraw - -set ignorecase smartcase - -set updatetime=250 - -set termguicolors -colorscheme paige -highlight! Comment guifg=#474747 guibg=#ffffff -highlight! htmlComment guifg=#474747 guibg=#ffffff -highlight! htmlCommentPart guifg=#474747 guibg=#ffffff -highlight! gitcommitComment guifg=#474747 guibg=#ffffff - -highlight! CursorLineNr ctermfg=232 ctermbg=254 gui=bold guifg=#080808 guibg=#cccccc - -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', 'lua vim.lsp.buf.declaration()', opts) - buf_set_keymap('n', 'gd', 'lua vim.lsp.buf.definition()', opts) - buf_set_keymap('n', 'K', 'lua vim.lsp.buf.hover()', opts) - buf_set_keymap('n', 'gi', 'lua vim.lsp.buf.implementation()', opts) - buf_set_keymap('n', '', 'lua vim.lsp.buf.signature_help()', opts) - buf_set_keymap('n', 'wa', 'lua vim.lsp.buf.add_workspace_folder()', opts) - buf_set_keymap('n', 'wr', 'lua vim.lsp.buf.remove_workspace_folder()', opts) - buf_set_keymap('n', 'wl', 'lua print(vim.inspect(vim.lsp.buf.list_workspace_folders()))', opts) - buf_set_keymap('n', 'D', 'lua vim.lsp.buf.type_definition()', opts) - buf_set_keymap('n', 'rn', 'lua vim.lsp.buf.rename()', opts) - buf_set_keymap('n', 'ca', 'lua vim.lsp.buf.code_action()', opts) - buf_set_keymap('n', 'gr', 'lua vim.lsp.buf.references()', opts) - buf_set_keymap('n', 'e', 'lua vim.lsp.diagnostic.show_line_diagnostics()', opts) - buf_set_keymap('n', '[d', 'lua vim.lsp.diagnostic.goto_prev()', opts) - buf_set_keymap('n', ']d', 'lua vim.lsp.diagnostic.goto_next()', opts) - buf_set_keymap('n', 'q', 'lua vim.lsp.diagnostic.set_loclist()', opts) -end - -local servers = { 'zls', 'gopls' } -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 f :Files -noremap b :Buffers diff --git a/.config/nvim/pack/plugins/start/formatter.nvim b/.config/nvim/pack/plugins/start/formatter.nvim deleted file mode 160000 index 0cdce2d..0000000 --- a/.config/nvim/pack/plugins/start/formatter.nvim +++ /dev/null @@ -1 +0,0 @@ -Subproject commit 0cdce2da8762ee01ee7d8df047b6e569d58c1ba3 diff --git a/.config/nvim/pack/plugins/start/fzf.vim b/.config/nvim/pack/plugins/start/fzf.vim deleted file mode 160000 index 1f7bfa4..0000000 --- a/.config/nvim/pack/plugins/start/fzf.vim +++ /dev/null @@ -1 +0,0 @@ -Subproject commit 1f7bfa4007043c30027b2cd79625e8aac5cff1f9 diff --git a/.config/nvim/pack/plugins/start/nvim-lspconfig b/.config/nvim/pack/plugins/start/nvim-lspconfig deleted file mode 160000 index 531751e..0000000 --- a/.config/nvim/pack/plugins/start/nvim-lspconfig +++ /dev/null @@ -1 +0,0 @@ -Subproject commit 531751ef03d77bf094f1fc07844b6c03ec4862bb diff --git a/.config/nvim/pack/plugins/start/paige b/.config/nvim/pack/plugins/start/paige deleted file mode 160000 index 0d72c38..0000000 --- a/.config/nvim/pack/plugins/start/paige +++ /dev/null @@ -1 +0,0 @@ -Subproject commit 0d72c3814da3cc01d4435deaa6168fa913c694fd diff --git a/.config/nvim/pack/plugins/start/vim-commentary b/.config/nvim/pack/plugins/start/vim-commentary deleted file mode 160000 index 627308e..0000000 --- a/.config/nvim/pack/plugins/start/vim-commentary +++ /dev/null @@ -1 +0,0 @@ -Subproject commit 627308e30639be3e2d5402808ce18690557e8292 diff --git a/.config/nvim/pack/plugins/start/vim-go b/.config/nvim/pack/plugins/start/vim-go deleted file mode 160000 index 430bc22..0000000 --- a/.config/nvim/pack/plugins/start/vim-go +++ /dev/null @@ -1 +0,0 @@ -Subproject commit 430bc227654abc3eb5e27a9052a857344ca08cdc diff --git a/.config/nvim/pack/plugins/start/vim-sleuth b/.config/nvim/pack/plugins/start/vim-sleuth deleted file mode 160000 index 65ade24..0000000 --- a/.config/nvim/pack/plugins/start/vim-sleuth +++ /dev/null @@ -1 +0,0 @@ -Subproject commit 65ade2453342062010386e226eaa754889e2b557 diff --git a/.config/nvim/pack/plugins/start/vim-svelte b/.config/nvim/pack/plugins/start/vim-svelte deleted file mode 160000 index 3a37f2a..0000000 --- a/.config/nvim/pack/plugins/start/vim-svelte +++ /dev/null @@ -1 +0,0 @@ -Subproject commit 3a37f2a2414fa4c20c70e67e978977c1e2a43187 diff --git a/.config/nvim/pack/plugins/start/zig.vim b/.config/nvim/pack/plugins/start/zig.vim deleted file mode 160000 index 0762d89..0000000 --- a/.config/nvim/pack/plugins/start/zig.vim +++ /dev/null @@ -1 +0,0 @@ -Subproject commit 0762d89c24f5a1da6bf26ca83f3719c379008ff9 diff --git a/.gitmodules b/.gitmodules index ba807bd..ede48e2 100644 --- a/.gitmodules +++ b/.gitmodules @@ -1,30 +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/vim-go"] - path = .config/nvim/pack/plugins/start/vim-go - url = https://github.com/fatih/vim-go -[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/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