Compare commits

..

No commits in common. "6c0c906cb27b199b76d828e308a34af947239c7f" and "77452d989d2e567779d66d46206f8da683fb0a71" have entirely different histories.

4 changed files with 15 additions and 32 deletions

View File

@ -38,10 +38,8 @@ return {
'clangd', 'clangd',
'cmake', 'cmake',
'jsonls', 'jsonls',
'lemminx',
'lua_ls', 'lua_ls',
'pyright', 'lemminx',
'ruff_lsp',
'vimls', 'vimls',
'yamlls', 'yamlls',
}, },
@ -55,7 +53,8 @@ return {
['lua_ls'] = function() ['lua_ls'] = function()
require('neodev').setup() require('neodev').setup()
require('lspconfig').lua_ls.setup({ local lspconfig = require('lspconfig')
lspconfig.lua_ls.setup({
settings = { settings = {
Lua = { Lua = {
diagnostics = { diagnostics = {
@ -65,19 +64,7 @@ return {
} }
} }
}) })
end, end
['pyright'] = function()
require('lspconfig').pyright.setup({
settings = {
pyright = {
-- Using Ruff's import organizer
disableOrganizeImports = true,
},
}
})
end,
}, },
}) })
@ -123,14 +110,13 @@ return {
vim.keymap.set('n', '<leader>fi', vim.keymap.set('n', '<leader>fi',
require("actions-preview").code_actions, opts) require("actions-preview").code_actions, opts)
-- Goto mappings -- Goto definition mapping
vim.keymap.set('n', 'gD', vim.lsp.buf.declaration, opts)
vim.keymap.set('n', 'gd', vim.lsp.buf.definition, opts) vim.keymap.set('n', 'gd', vim.lsp.buf.definition, opts)
vim.keymap.set('n', 'gi', vim.lsp.buf.implementation, opts) -- TODO: nnoremap <silent> <leader>gt <Plug>(coc-type-definition)
vim.keymap.set('n', '<leader>D', vim.lsp.buf.type_definition, opts) -- TODO: nnoremap <silent> <leader>gu <Plug>(coc-references-used)
-- Get references to symbol under cursor, store in quickfix window -- Get references to symbol under cursor, store in quickfix window
vim.keymap.set('n', 'gr', vim.lsp.buf.references, opts) vim.keymap.set('n', '<leader>gr', vim.lsp.buf.references, opts)
-- Refactoring mappings -- Refactoring mappings
vim.keymap.set('n', '<leader>rn', vim.lsp.buf.rename, opts) vim.keymap.set('n', '<leader>rn', vim.lsp.buf.rename, opts)

View File

@ -0,0 +1,6 @@
return {
'tummetott/unimpaired.nvim',
config = function()
require('unimpaired').setup({})
end
}

View File

@ -1,5 +0,0 @@
return {
{ 'tummetott/unimpaired.nvim' },
{ 'stevearc/dressing.nvim' },
{ 'kevinhwang91/nvim-bqf' },
}

View File

@ -121,11 +121,7 @@ function statusline.active()
-- loclist flag, query the window info. -- loclist flag, query the window info.
local info = vim.fn.getwininfo(vim.fn.win_getid())[1] local info = vim.fn.getwininfo(vim.fn.win_getid())[1]
if mode == 'Normal' then if mode == 'Normal' then
if info.loclist == 1 then if info.loclist then mode = 'Location' else mode = 'Quickfix' end
mode = 'Location'
else
mode = 'Quickfix'
end
end end
local title = info.variables.quickfix_title local title = info.variables.quickfix_title
return special('StatusLineLight', mode, title) return special('StatusLineLight', mode, title)