(self)
return options
Build the command used to launch the server Vim.
Build the command used to launch the server Vim.
Build the command used to launch the server Vim .
def _build_server_cmd(self):
        """Build the command used to launch the server Vim."""
        progpath = vim.eval("v:progpath")

        options = [
            progpath,
            "--clean",
            "--cmd",
            f"let g:pf_server_communication_file='{self.file_path}'",
            "-u",
            os.path.normpath(
                # serverrc.vim in the root of this repository, instead of the user's
                # regular .vimrc or init.vim
                os.path.join(os.path.dirname(__file__), "..", "..", "serverrc.vim")
            ),
        ]

        if progpath.endswith("nvim"):
            python3_host_prog = vim.eval("g:python3_host_prog")
            options += [
                "--headless",
                "--cmd",
                f"let g:python3_host_prog='{python3_host_prog}'",
            ]
        else:
            options += ["-v", "--not-a-term"]

        return options
def _build_server_cmd ( self ) : progpath = vim . eval ( "v:progpath" ) options = [ progpath , "--clean" , "--cmd" , f"let g:pf_server_communication_file='{self.file_path}'" , "-u" , os . path . normpath ( # serverrc.vim in the root of this repository, instead of the user's # regular .vimrc or init.vim os . path . join ( os . path . dirname ( __file__ ) , ".." , ".." , "serverrc.vim" ) ) , ] if progpath . endswith ( "nvim" ) : python3_host_prog = vim . eval ( "g:python3_host_prog" ) options += [ "--headless" , "--cmd" , f"let g:python3_host_prog='{python3_host_prog}'" , ] else : options += [ "-v" , "--not-a-term" ] return options