mirror of
https://github.com/ksyasuda/rice.git
synced 2025-12-05 02:53:39 -08:00
update
This commit is contained in:
@@ -16,7 +16,6 @@ tnoremap <leader>tP <C-\><C-N>:FloatermToggle ipython-full<CR>
|
||||
nmap <C-J> :bnext<CR>
|
||||
nmap <C-K> :bprev<CR>
|
||||
nmap <C-T> :wa<CR>:FloatermToggle floatterm<CR>
|
||||
nmap <C-n> :NvimTreeToggle<CR>
|
||||
|
||||
" open file under cursor, create if necessary
|
||||
nnoremap // :Lines<CR>
|
||||
@@ -47,6 +46,7 @@ nmap <leader>bn :bnext<CR>
|
||||
nmap <leader>bp :bprev<CR>
|
||||
|
||||
nmap <leader>ca :lua vim.lsp.buf.code_action()<CR>
|
||||
nmap <leader>cc :vert Copilot<CR>
|
||||
nmap <leader>cd :LspDiagnostics <bufnr><CR>
|
||||
nmap <leader>cl :lua vim.lsp.diagnostic.show_line_diagnostics()<CR>
|
||||
nnoremap <silent> <Leader>cn :DashboardNewFile<CR>
|
||||
|
||||
@@ -184,10 +184,8 @@ lsp_installer.on_server_ready(function(server)
|
||||
server:setup(DEFAULT_SETTINGS)
|
||||
end)
|
||||
|
||||
-- Use a loop to conveniently call 'setup' on multiple servers and
|
||||
-- map buffer local keybindings when the language server attaches
|
||||
-- local servers = { 'pyright', 'bashls', 'vimls', 'yamlls', 'dockerls', 'html', 'sumneko_lua', 'dotls', 'rust_analyzer', 'clangd', 'ansiblels' }
|
||||
local servers = { 'jedi_language_server', 'bashls', 'vimls', 'yamlls', 'dockerls', 'html', 'sumneko_lua', 'dotls', 'rust_analyzer', 'clangd', 'ansiblels' }
|
||||
|
||||
local servers = { 'jedi_language_server', 'bashls', 'vimls', 'yamlls', 'dockerls', 'html', 'sumneko_lua', 'rust_analyzer', 'clangd', 'ansiblels' }
|
||||
for _, lsp in pairs(servers) do
|
||||
require('lspconfig')[lsp].setup {
|
||||
on_attach = on_attach,
|
||||
@@ -197,3 +195,5 @@ for _, lsp in pairs(servers) do
|
||||
}
|
||||
}
|
||||
end
|
||||
|
||||
require 'lspconfig'.bashls.setup {}
|
||||
|
||||
@@ -3,7 +3,7 @@ local helpers = require("null-ls.helpers")
|
||||
|
||||
require("null-ls").setup({
|
||||
on_attach = function(client)
|
||||
if client.resolved_capabilities.document_formatting then
|
||||
if client.supports_method "textDocument/formatting" then
|
||||
vim.cmd([[
|
||||
augroup LspFormatting
|
||||
autocmd! * <buffer>
|
||||
|
||||
@@ -94,7 +94,7 @@ cmp.setup({
|
||||
-- }
|
||||
-- Enable some language servers with the additional completion capabilities offered by nvim-cmp
|
||||
local lspconfig = require('lspconfig')
|
||||
local servers = { 'bashls', 'pyright', 'sqlls', 'jsonls', 'yamlls', 'vimls', 'dotls', 'dockerls' }
|
||||
local servers = { 'bashls', 'jedi_language_server', 'sqlls', 'jsonls', 'yamlls', 'vimls', 'dotls', 'dockerls' }
|
||||
for _, lsp in ipairs(servers) do
|
||||
lspconfig[lsp].setup {
|
||||
-- on_attach = my_custom_on_attach,
|
||||
|
||||
1
nvim/spell/en.utf-8.add
Normal file
1
nvim/spell/en.utf-8.add
Normal file
@@ -0,0 +1 @@
|
||||
dt
|
||||
BIN
nvim/spell/en.utf-8.add.spl
Normal file
BIN
nvim/spell/en.utf-8.add.spl
Normal file
Binary file not shown.
Reference in New Issue
Block a user