quandoan
This commit is contained in:
parent
d350db2449
commit
ee1be1a29a
6 changed files with 258 additions and 11 deletions
3
lua/custom/setups/init.lua
Normal file
3
lua/custom/setups/init.lua
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
-- Then load your custom setup scripts
|
||||
require 'custom.setups.lsp'
|
||||
require 'custom.setups.term'
|
||||
12
lua/custom/setups/lsp.lua
Normal file
12
lua/custom/setups/lsp.lua
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
require('lspconfig').pyright.setup {
|
||||
settings = {
|
||||
python = {
|
||||
analysis = {
|
||||
typeCheckingMode = 'off', -- disables type checking
|
||||
diagnosticMode = 'openFilesOnly', -- optional: only analyze open files
|
||||
autoSearchPaths = true,
|
||||
useLibraryCodeForTypes = true,
|
||||
},
|
||||
},
|
||||
},
|
||||
}
|
||||
10
lua/custom/setups/term.lua
Normal file
10
lua/custom/setups/term.lua
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
require('toggleterm').setup {
|
||||
direction = 'float',
|
||||
float_opts = {
|
||||
border = 'curved',
|
||||
width = 100,
|
||||
height = 30,
|
||||
winblend = 0, -- optional: transparency
|
||||
-- Omit row/col so it's automatically centered
|
||||
},
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue