feat: rename providers dir to servers
This commit is contained in:
parent
8000535b37
commit
9b8f755096
9 changed files with 6 additions and 6 deletions
|
@ -19,8 +19,8 @@ local config = {
|
|||
'rust_analyzer',
|
||||
},
|
||||
|
||||
-- See Cosmic defaults lsp/providers/null_ls.lua and https://github.com/jose-elias-alvarez/null-ls.nvim/
|
||||
-- If adding additional sources, be sure to also copy the defaults that you would like to preserve from lsp/providers/null_ls.lua
|
||||
-- See Cosmic defaults cosmic/plugins/null-ls/init.lua and https://github.com/jose-elias-alvarez/null-ls.nvim/
|
||||
-- If adding additional sources, be sure to also copy the defaults that you would like to preserve from cosmic/plugins/null-ls/init.lua
|
||||
null_ls = {
|
||||
-- Disable default list of sources provided by CosmicNvim
|
||||
default_cosmic_sources = false,
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
local defaults = require('cosmic.lsp.providers.defaults')
|
||||
local defaults = require('cosmic.lsp.servers.defaults')
|
||||
local can_format_on_save = require('cosmic.utils.lsp').can_format_on_save
|
||||
return {
|
||||
on_attach = function(client, bufnr)
|
|
@ -13,14 +13,14 @@ return {
|
|||
|
||||
-- set up lsp servers
|
||||
local u = require('cosmic.utils')
|
||||
local default_config = require('cosmic.lsp.providers.defaults')
|
||||
local default_config = require('cosmic.lsp.servers.defaults')
|
||||
local lspconfig = require('lspconfig')
|
||||
|
||||
local start_server = function(server)
|
||||
local server_config = default_config
|
||||
|
||||
-- set up default cosmic options
|
||||
local ok, cosmic_server_config = pcall('cosmic.lsp.providers.' .. server)
|
||||
local ok, cosmic_server_config = pcall('cosmic.lsp.servers.' .. server)
|
||||
if ok then
|
||||
server_config = u.merge(server_config, cosmic_server_config)
|
||||
end
|
||||
|
|
|
@ -8,7 +8,7 @@ return {
|
|||
'gbprod/none-ls-shellcheck.nvim',
|
||||
},
|
||||
config = function()
|
||||
local defaults = require('cosmic.lsp.providers.defaults')
|
||||
local defaults = require('cosmic.lsp.servers.defaults')
|
||||
local null_ls = require('null-ls')
|
||||
local config_opts = u.merge({
|
||||
default_cosmic_sources = true,
|
||||
|
|
Loading…
Add table
Reference in a new issue