Skip to content

Commit

Permalink
ref(nvim): disable source-kit integration by default (#233)
Browse files Browse the repository at this point in the history
  • Loading branch information
kkharji authored Jul 8, 2023
1 parent a5271b4 commit cba27d0
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 4 deletions.
9 changes: 7 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -192,8 +192,13 @@ require("xbase.statusline").feline() -- append to feline setup function
--- Log level. Set it to ERROR to ignore everything
log_level = vim.log.levels.DEBUG,
--- Options to be passed to lspconfig.nvim's sourcekit setup function.
--- Usually empty map is sufficient, However, it is strongly recommended to use on_attach key to setup custom mapppings
sourcekit = {}, --- Set it to nil to skip lspconfig's sourcekit setup
--- Setting this to {} is sufficient, However, it is strongly recommended to use on_attach key to setup custom mappings
--- {
--- cmd = { "sourcekit-lsp", "--log-level", "error" },
--- filetypes = { "swift" },
--- root_dir = pattern("Package.swift", ".git", "project.yml", "Project.swift"),
--- }
sourcekit = nil, -- Disabled by default (xbase will not call it for you)
--- Statusline provider configurations
statusline = {
watching = { icon = "", color = "#1abc9c" },
Expand Down
10 changes: 8 additions & 2 deletions lua/xbase/config.lua
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,14 @@ local defaults = {
--- Log level. Set to ERROR to ignore everything
log_level = vim.log.levels.DEBUG,
--- Options to be passed to lspconfig.nvim's sourcekit setup function.
--- Usually empty map is sufficient, However, it is strongly recommended to use on_attach key to setup custom mappings
sourcekit = {}, -- Set it to nil to skip lspconfig's sourcekit setup
--- Setting this to {} is sufficient, However, it is strongly recommended to use on_attach key to setup custom mappings.
--- Opts if set to {} will be:
--- {
--- cmd = { "sourcekit-lsp", "--log-level", "error" },
--- filetypes = { "swift" },
--- root_dir = pattern("Package.swift", ".git", "project.yml", "Project.swift"),
--- }
sourcekit = nil, -- Disabled by default
--- Statusline provider configurations
statusline = {
watching = { icon = "", color = "#1abc9c" },
Expand Down

0 comments on commit cba27d0

Please sign in to comment.