fixed python provider

This commit is contained in:
Dane Sabo 2025-03-25 11:33:48 -04:00
parent 0d7cd965a3
commit 1f26351afb
5 changed files with 7 additions and 33 deletions

View File

@ -87,4 +87,5 @@ M.ui = {
M.plugins = "custom.plugins" M.plugins = "custom.plugins"
M.mappings = require "custom.mappings" M.mappings = require "custom.mappings"
return M return M

View File

@ -1,36 +1,6 @@
local config = require "plugins.configs.lspconfig" local config = require "plugins.configs.lspconfig"
local on_attach = function(client, bufnr) local on_attach = config.on_attach
config.on_attach(client, bufnr)
-- Keybinding to show hover documentation
vim.api.nvim_buf_set_keymap(
bufnr,
"n",
"<leader>h",
"<cmd>lua vim.lsp.buf.hover()<CR>",
{ noremap = true, silent = true }
)
-- Keybinding to show diagnostics
vim.api.nvim_buf_set_keymap(
bufnr,
"n",
"<leader>e",
'<cmd>lua vim.diagnostic.open_float(nil, { focusable = false, close_events = {"BufLeave", "CursorMoved", "InsertEnter", "FocusLost"}, border = "rounded", source = "always", prefix = " ", scope = "cursor" })<CR>',
{ noremap = true, silent = true }
)
-- Keybinding to show signature help
vim.api.nvim_buf_set_keymap(
bufnr,
"n",
"<leader>s",
"<cmd>lua vim.lsp.buf.signature_help()<CR>",
{ noremap = true, silent = true }
)
end
local capabilities = config.capabilities local capabilities = config.capabilities
local lspconfig = require "lspconfig" local lspconfig = require "lspconfig"

View File

@ -1,3 +1,6 @@
vim.g.dap_virtual_text = false vim.g.dap_virtual_text = false
vim.g.tlaplus_mappings_enable = true vim.g.tlaplus_mappings_enable = true
vim.env.PATH = vim.env.PATH .. ":/home/danesabo/.ghcup/bin" vim.env.PATH = vim.env.PATH .. ":/home/danesabo/.ghcup/bin"
vim.g.loaded_python3_provider = 1
vim.g.python3_host_prog = vim.fn.expand "~/.config/nvim/nvim_venv/bin/python"
print "Custom init settings loaded."

View File

@ -41,5 +41,4 @@ vim.api.nvim_create_autocmd("CursorHold", {
vim.diagnostic.open_float(nil, opts) vim.diagnostic.open_float(nil, opts)
end, end,
}) })
return M return M

View File

@ -9,13 +9,14 @@ local plugins = {
"rust-analyzer", "rust-analyzer",
"haskell-language-server", "haskell-language-server",
"matlab-language-server", "matlab-language-server",
"lua-language-server",
"clangd", "clangd",
"marksman", "marksman",
"ruff",
"pyright", "pyright",
--- formatters --- formatters
"stylua", "stylua",
"black",
"clang-format", "clang-format",
"fourmolu", "fourmolu",
}, },