Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions install/nvim/config/lua/plugins/lsp.lua
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@ local servers = {
name = "basedpyright",
filetypes = { "python" },
cmd = { "basedpyright-langserver", "--stdio" },
root_markers = { "pyproject.toml", "setup.py", "setup.cfg", "requirements.txt", ".git", vim.uv.cwd() },
settings = {
basedpyright = {
disableOrganizeImports = true,
Expand Down
4 changes: 1 addition & 3 deletions install/nvim/config/lua/plugins/syntax.lua
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,11 @@ vim.api.nvim_create_autocmd("FileType", {
callback = function(args)
local ft = vim.bo[args.buf].filetype

local ok = pcall(vim.treesitter.language.add, ft)
local ok = pcall(vim.treesitter.start, args.buf, ft)
if not ok then
return
end

vim.treesitter.start(args.buf, ft)

if ft ~= "ruby" then
vim.bo[args.buf].indentexpr = "v:lua.require'nvim-treesitter'.indentexpr()"
end
Expand Down
Loading