feat: Enabling pyright and buf lsp

This commit is contained in:
Stephen Doyle 2024-06-05 20:32:28 +01:00
parent 6f8d6f3e6d
commit 5c5b035616
2 changed files with 6 additions and 1 deletions

View File

@ -93,6 +93,9 @@ vim.g.maplocalleader = ' '
-- Set to true if you have a Nerd Font installed and selected in the terminal -- Set to true if you have a Nerd Font installed and selected in the terminal
vim.g.have_nerd_font = true vim.g.have_nerd_font = true
-- Set to setup the python environment
vim.g.python_host_prog = '/usr/local/bin/python3'
-- [[ Setting options ]] -- [[ Setting options ]]
-- See `:help vim.opt` -- See `:help vim.opt`
-- NOTE: You can change these options as you wish! -- NOTE: You can change these options as you wish!
@ -605,7 +608,7 @@ require('lazy').setup({
-- - settings (table): Override the default settings passed when initializing the server. -- - settings (table): Override the default settings passed when initializing the server.
-- For example, to see the options for `lua_ls`, you could go to: https://luals.github.io/wiki/settings/ -- For example, to see the options for `lua_ls`, you could go to: https://luals.github.io/wiki/settings/
local servers = { local servers = {
clangd = {}, -- clangd = {},
gopls = {}, gopls = {},
pyright = {}, pyright = {},
rust_analyzer = {}, rust_analyzer = {},
@ -704,6 +707,7 @@ require('lazy').setup({
-- --
-- You can use 'stop_after_first' to run the first available formatter from the list -- You can use 'stop_after_first' to run the first available formatter from the list
-- javascript = { "prettierd", "prettier", stop_after_first = true }, -- javascript = { "prettierd", "prettier", stop_after_first = true },
proto = { 'buf' },
}, },
}, },
}, },

View File

@ -13,4 +13,5 @@ return {
require('fzf-lua').setup {} require('fzf-lua').setup {}
end, end,
}, },
require('lspconfig').bufls.setup {},
} }