added pylsp servers & keymaps

This commit is contained in:
tastypawns 2025-02-18 13:16:15 -06:00
parent b421d0ccaf
commit 220ff632e9
2 changed files with 15 additions and 6 deletions

View File

@ -157,8 +157,15 @@ vim.opt.cursorline = true
-- Minimal number of screen lines to keep above and below the cursor.
vim.opt.scrolloff = 10
--turn off virtual lines ect.
vim.diagnostic.config {
virtual_text = false,
virtual_lines = true,
underline = false,
}
--pull in remaps
require 'remap'
--require 'remap'
-- [[ Basic Autocommands ]]
-- See `:help lua-guide-autocommands`
@ -600,7 +607,6 @@ require('lazy').setup({
-- clangd = {},
-- gopls = {},
pylsp = {},
-- pyright = {},
-- rust_analyzer = {},
-- ... etc. See `:help lspconfig-all` for a list of all the pre-configured LSPs
--
@ -771,18 +777,19 @@ require('lazy').setup({
-- Accept ([y]es) the completion.
-- This will auto-import if your LSP supports it.
-- This will expand snippets if the LSP sent a snippet.
['<C-y>'] = cmp.mapping.confirm { select = true },
--['<C-y>'] = cmp.mapping.confirm { select = true },
['<C-Space>'] = cmp.mapping.confirm { select = true },
-- If you prefer more traditional completion keymaps,
-- you can uncomment the following lines
--['<CR>'] = cmp.mapping.confirm { select = true },
--['<Tab>'] = cmp.mapping.select_next_item(),
--['<Tab>'] = cmp.mapping.confim(),
--['<S-Tab>'] = cmp.mapping.select_prev_item(),
-- Manually trigger a completion from nvim-cmp.
-- Generally you don't need this, because nvim-cmp will display
-- completions whenever it has completion options available.
['<C-Space>'] = cmp.mapping.complete {},
--['<C-Space>'] = cmp.mapping.complete {},
-- Think of <c-l> as moving to the right of your snippet expansion.
-- So if you have a snippet that's like:
@ -923,7 +930,7 @@ require('lazy').setup({
-- This is the easiest way to modularize your config.
--
-- Uncomment the following line and add your plugins to `lua/custom/plugins/*.lua` to get going.
-- { import = 'custom.plugins' },
{ import = 'custom.plugins' },
--
-- For additional information with loading, sourcing and examples see `:help lazy.nvim-🔌-plugin-spec`
-- Or use telescope!

View File

@ -34,3 +34,5 @@ vim.keymap.set('n', '<leader>o', '<C-w><C-k>', { desc = 'Move focus to the upper
--split window maps
vim.keymap.set('n', '<leader>xs', ':close', { desc = 'Close current window' })
vim.keymap.set('n', '<leader>s', ':vsplit', { desc = 'Split window vertically' })
return {}